it should be pretty easy to exec an external command, all you need to do is exec shutdown, using the command shutdown -s
if you type shutdown or shutdown ? in a command prompt it will give you all the switches you can use with it. for example you can set a delay (believe the default is like 30 seconds if you just do -s, you can also have it reboot -r or, my favorite, you can remotely shutdown a computer on the network using -m \\computername (good times


-Darth Simon