once i put the same post and someone told me this...
creat a simple batch like this and when ever i wanted to do shutdown but before run something, do it by executing this...
after you close notepad , the computer will go down...
@ECHO OFF
START /W C:\WINDOWS\notepad.EXE
START C:\WINDOWS\RUNDLL32.exe
C:\WINDOWS\SYSTEM\shell32.dll,SHExitWindowsEx 1
but this doesn't seem to work when you do shutdown on the startmenu
i hope you get something form this!!