On a local system, you can manage shutdown and restart using the following commands:
Shutdown local system:
shutdown /s /t ShutdownDelay /l /f
Restart local system:
shutdown /r /t ShutdownDelay /l /f
Cancel delayed shutdown of local computer:
shutdown /a
where /T ShutdownDelay is used to set the optional number of seconds to wait before shutdown or restart, /L optionally logs off the current user immediately, and /F optionally forces running applications to close without warning users in advance. In this example, the local system is restarted after a 60-second delay:
shutdown /r /t 60