• Try wrapping the powershell script in a batch file and calling that instead. In the batch file redirect output to a file and review the file after the script was supposed to have run when the agent stops. It is possible that the script is failing when running as a script for some reason you did not expect yet works when you run it manually. Grabbing the PowerShell output could help here because you would get to see if any errors are thrown back.

    Joie Andrew
    "Since 1982"