We have issues with just running this way due to the execution policy (for security reasons we do not change the default).
A better way to avoid having this issue is to run PowerShell commands and scripts this way in a command step:
PowerShell Commandspowershell.exe -executionpolicy bypass -command {"commands go here"}
PowerShell Scriptspowershell.exe -executionpolicy bypass -file "{PackageShare}\Scripts\script.ps1"
This will guarantee that PowerShell commands and scripts run as intended.