If I’m not mistaken this topic has been already addressed in this thread : Reboot command.
No solution so far.