Parameters with double quotes are not properly passed to Scriptblock by ArgumentList
问题 I'm writing generic powershell script to perform deployments on remote machines. I have hit one problem I can not overrun, and this problem is with parameters with double quotes in Scriptblock passed by ArgumentList I have something like this: $remoteAddress = "some-pc" $deploymentCommand = "D:\some path\Command.exe" $deploymentPackages = @(`"“package - one - external"`", `"“package - two - external"`", `"“package - three - internal"`") foreach ($deploymentPackage in $deploymentPackages) {