Daily Routine Scripts
As I personally tend to move from my office to coffee shops and taking my laptop everywhere, something I personally like to do, especially when outside the office is to run on battery and later on plug to AC later, that said, I switch between Balanced and High Performance plans respectively.
Here is a PowerShel Script that uses WMI to list and switch power plans based on a key given, internally using a dict.
> pp.ps1 -PlanKey hig to switch to the High Performance Plan
OR
> pp.ps1 -PlanKey bal to swtich to Balanced.
Something that could be enhanced is to locate the plan by something different than its name, as my OS is in Swedish I had to use the corresponding plan names, perhaps there is a different field that would not vary from system to system.