I have a script which takes arguments as
.\script1.ps1 -Arg1 "Argument 1" -Arg2 "Argument 2"
I have set the format for arguments in TFS as:
.\script.ps1 -Arg1 $($arg1) -Arg2 $($Arg2)
I get the following error when I try to pass just Arg2:
Missing an argument for parameter 'Arg1'. Specify a parameter of type 'System.String[]' and try again.

