Take a look at this page
It should be helpfull.


http://www.robvanderwoude.com/shutdown.html

<REBOOT>
RUNONCE.EXE -q
RUNDLL USER.EXE,ExitWindowsExec

<SHUTDOWN>
RUNDLL USER.EXE,ExitWindows
ECHO G=FFFF:0000 ¦ DEBUG

<ALL>
RUNDLL32 SHELL32.DLL,SHExitWindowsEx n
n can be any combination (sum) of the following numbers: (4)
0 Logoff
1 Shutdown
2 Reboot
4 Force
8 Poweroff (if supported by the hardware)