To fix this problem, you have to put exact path to PowerShell by following next steps:
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"
PowerShell destination may vary between the Windows versions. So, in case that didn't work, try to find the powershell.exe manually in your Windows folder.
If it's possible for you to operate with cmd, instead of powershell, you can complete next steps:
In case you still have problems, make sure that "Include system environment variables" is enabled in the right most part of the "Environment variables" bar.
That solution applies only if cmd.exe is enough to launch and operate the tasks you need to accomplish.