I don't know if there is a way to call a PowerShell script like that, passing only the 1st and 3rd parameter. You can pass just the 1st, or the 1st and 2nd, or the 1st, 2nd, and 3rd, but not the 1st and 3rd. If there is, you can just call PowerShell.exe or pwsh.exe as needed from a Run Program action.
|