VB 6.0 can be used to invoke shell script commands of the windows api with a code.
This shell script command can be used to perform shutdown or restart tasks..
Call Shell("Shutdown /s") 'to shutdown
Call Shell("Shutdown /r") 'to restart
Call Shell("Shutdown /l") 'to log off
Call Shell("Shutdown /a") 'to Abort