Before starting to create packages that run Powershell scripts, verify that configuration policy is set correctly:
First, DSM > Software Delivery > Agent > File Association: Powershell Scripts interpreter needs to be set to the correct interpreter and parameter to accept the script, normally 'Powershell.exe -File'
Next, for 64bit Windows agents, configuration policy needs to specify if the 32bit or 64bit of the Powershell interpreter needs to be used. This is listed in DSM > Software Delivery > Agent > Fie Association: Powershell Scripts interpreter bit mode, by default set to 32bit mode.
If you made any changes different from the defaults, you need to deploy the modified configuration policy to the agents that will run the Powershell scripts.
Create a package and paste the Powershell script to the source together with any additional needed files. Then create the installation procedure and specify the PS1 file.
It will cause the agent to run (for this example) Powershell.exe -File Power1.ps1
Additional parameters can be specified in the Parameters box as usual.