I'd be interested to know how you scripted this, it's not really my forte, have had a play with VBS and am now looking at Powershell. I understand DelProf2 has to be run as a local admin, I don't really wish to place the admin password in a VB script, nor do I wish having to enable Powershell across the network clients, so my next option was to look at running a PS script remotely against the machines.
I was hoping for this to run as a group policy shutdown script originally.