I used the psshutdown, but had a different method.
I had Outlook open on the machine 24/7 and if it received an email from my email account only, with a random set of words in it, the rule would run psshutdown

you could try this
you could even use this mthod to shiut the computer off from a text message! :)