• In your settings for running the script you are specifying the -command parameter. Try changing it to the -file parameter and see if your result is any different.

    Additionally, while your execution policy may be remotesigned, you might want to check if that is the same execution policy for the account running the SQL Agent service.

    Joie Andrew
    "Since 1982"