I agree with the above: also, if it's Windows, you may also have the option of command line "shutdown" command - run shutdown /? to see its options. You could then put the command(s) you want in a batch file, and run it when you need to.
I say "may" because I'm not that sure which versions have it as standard. I think Vista does, XP SP2 might have.