Please refer the below scipt for, Activate balanced power plan
Balanced power plan will automatically increases your CPU’s speed when your computer needs it, and reduces it when it isn’t necessary. This is the default setting, and it should be fine most of the time.
Please run the script as System User