There is a command line utility called "Shutdown.exe" that can be used for shutting down or restarting your local machine or remote machines.
I think you will find it in the resource kit. I know it wasn't native on my Win2K machines and can't remember where I got it for my NT servers.
The NT version is a command line only and uses switches for things like host name, restart after shutdown, end all processes, etc. It will work on Win2k machines as well.
The version I use with my Win2K boxes was copied from a colleague's XP workstation. This one works on both NT and Win2K boxes and can be run in GUI or command line modes. But the switches are slightly different from the NT4 version.
Do a google search for "shutdown.exe" to find lots of posts on how to use it.
You should have a look at it.