The script is available for download from
You can also use Microsoft Script Browser for Windows PowerShell ISE to download the sample with one button click from within your scripting environment.
This script sample can change the Power Plan in Windows.
Most organizations have a number of physical servers and you can make an impact by configuring the power plans on those systems. The appropriate power plan settings can reduce power consumption. This script can easily change the multiple computers' power plan.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery