Shutdown computer
shutdown /s
Restart computer
shutdown /r
Hibernate computer
shutdown /h
The shutdown command is available since Windows XP. On older versions of Windows use this command:
Restarting the computer
RUNDLL.EXE user.exe,exitwindowsexec
Shut down the computer
RUNDLL32.EXE user,exitwindows