Changing Power settings in Windows via Powershell

This one helped me with a few other issues I was working on but it is useful nonetheless.

powercfg.exe /L - lists the power settings

PowerShell to change the power plan:
Get-WmiObject -Class Win32_PowerPlan -Namespace root\cimv2\power -Filter "ElementName='Balanced'" | Invoke-WmiMethod -Name Activate
0