Open a Command Prompt:
shutdown -s -t 0 ::: Shutdown
shutdown -t 0 -r -f ::: Restart
That’s a “zero” after the -t option, indicating shutdown in zero seconds.
The -r option indicates a restart, rather than shutdown. (Don’t forget this one)!
The -f option forces all applications to terminate.