Tuesday, May 24, 2016

Calling Powershell script from Control-M

call PowerShell -NoLogo -NoProfile -NonInteractive -ExecutionPolicy "Bypass" -Command "& '\\path\to\pscript\myscript.ps1'" < NUL

No comments:

Post a Comment