Shutdown /r command-line is used to restart/reboot local or a remote computer using a command prompt.
You can use /t parameter to delay the reboot of the computer let’s say 30 seconds delay, use /t 30.
Restart-Computer cmdlet in PowerShell is used to reboot local or remote computers. You can use the -force parameter to forcefully reboot the computer.