I actually have a powerplan script, since my W8.1 machine, but I have to post it as a file, because its above the post length allowed. It should be a .cmd, but uploaded as a TXT to be left uncompressed.
This is, of course, meant to be used in a notebook, but you can process those in a desktop...