Another option to this is PEShutdown.exe, use google to find it, then write a script that will call it. It also has a reboot switch to which is useful, for example when I install windows, I do it from a script with the "START /wait" command, then the next line in the batch will not execute until the preceeding line is complete. Just a suggestion.