power: a tool to control power settings in Windows

This program can be used in scripts or just from the command line if you wish. I use the command line in Windows (Cygwin) often, so I switch power settings on my laptop using this tool. Also, certain programs I use require me to turn off power saving options, so I have a small wrapper around them that changes the power settings to "Always On" before they get run. Also, on airplanes, I generally preserve battery life by slowing down the CPU and putting the disks to sleep while I edit code, but when I want to compile, I want it to run as fast as possible. So all my build scripts pre-run this program to turn off power saving stuff when I build.

Download the source here
Download the binary here