Sometime back someone had asked for shortcuts / command line versions of various shutdown options. I am unable to find that post & don't know if the thread is closed. Here are the one's which were desired. may be they are of use.

rundll32.exe shell32.dll,SHExitWindowsEx N" (sans quotes).

Letter "N" needs to be a number:
0 for LOGOFF
1 for SHUTDOWN
2 for REBOOT
4 for FORCE, and
8 for POWEROFF.

Each one will... do what you want it to do.