For Windows 9x series the shutdown can be performed from shell32.dll using

rundll32 shell32.exe,SHexitWindowsEx %1

replace %1 with

0 = Log Off
1 = ShutDOwn
2 = Restart
4 = Forced
8 = Poweroff

ie.. rundll32.exe shell32.dll,SHExitWindowsEx 1 - will shut it down.