Its still going to be hardware related, a user mode application cannot cause a computer to power down in this way.