Problem: I'm trying to use RPM to launch a Windows Powershell script, but nothing inside the script seems to be running.
Solution: By default, the script execution policy in Windows Powershell is set to Restricted. This prevents Powershell from running any scripts. In order to allow scripts, you can use the Set-ExecutionPolicy cmdlet. For instance, if you want to allow all scripts to run, you might run the following command from a Powershell command line: