Anything you can do in a command prompt, you can do in a powershell console. As long as the commands are still supported in windows.
Here is a script from the gallery, found it with a quick search in google, that looks like it uses the powercfg
Power Scheme
If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.