Yes, the easiest is to use shutdown.exe from the resource kit. (For some reason someone thought this was worth a KB article. Check out Q317371.) Shutdown.exe is in my system32 folder. I don't know how it got there, though, so it may or may not be part of the OS and/or a service pack.
Or, compile a small .exe that calls ExitWindowsEx();
-Noggin