This is to get around the issue of passing arrays into the script. The command below passes in as a single string, not an array. powershell.exe -File "MyFile" -MyArr One,Two,Three