Script task for Powershell interpreter fails even though the script executes sucessfully.
Ex: write-host "Hello"
Output gets printed in Bamboo log but the task fails for error:
powershell -NonInteractive -ExecutionPolicy bypass -Command D:\123.ps1] was 1 while expected 0