title: AzureDevOps Powershell task command line parameters are not properly rendered in Powershell script
body: <p>I have an AzureDevops Powershell task which is passing values read from KeyVault as parameters to the script.  Even with double or single quotes surrounding the variables in the DevOps task, the values do not appear correct in the script.</p>
  <p>What else do I need to do to get these values passed properly to the script?</p>
  <p>There is an <a href="https://stackoverflow.com/questions/56561416/how-to-pass-connection-string-with-special-characters-as-a-parameter-to-powershe">older similar question</a> and the answer was to double-quote the parameters in the task, which I've done, to no avail.</p>
  <p>Sample Powershell task:</p>
  <pre><code>ScriptArguments: -connectionString &quot;$(ConnString)&quot; -password &quot;$(ConnStringPassword)&quot;
  </code></pre>
  <p>Sample values stored in KeyVault:</p>
  <pre><code>ConnString:  Server=tcp:test-sqldb.database.windows.net,1433;Initial Catalog=TestDb;Persist Security Info=False;
  ConnStringPassword:  Pa$$w0rd
  </code></pre>
  <p>Sample Script:</p>
  <pre><code>param (
    [string]$connectionString,
    [string]$password
  )
  
  Write-Host &quot;connectionString: $connectionString&quot;
  Write-Host &quot;password: $password&quot;
  </code></pre>
  <p>Sample output from pipeline execution:</p>
  <pre><code>connectionString: ***
  password: Paw0rd
  </code></pre>
  <p>If I use single quotes in the pipeline task as suggested by @Thomas below:</p>
  <p>Sample Powershell task:</p>
  <pre><code>ScriptArguments: -connectionString '$(ConnString)' -password '$(ConnStringPassword)'
  </code></pre>
  <p>Sample output from Pipeline execution:</p>
  <pre><code>connectionString: ***
  password: ***
  </code></pre>