title: PowerShell parameters in command line, single quotes and double quotes
body: <p>I have a script like this:</p>
  
  <pre><code>param(
      [String]$a,
      [String]$b,
      [String]$c
  )
  
  Write-Host "a is '$a'"
  Write-Host "b is '$b'"
  Write-Host "c is '$c'"
  </code></pre>
  
  <p>Now I call this script from command line with this command <code>PowerShell -Command .\somescript.ps1 -A "a bc"</code> (using double quotes here) and the result of this call is</p>
  
  <pre><code>a is 'a'
  b is 'bc'
  c is ''
  </code></pre>
  
  <p>But my aim was to get this output: </p>
  
  <pre><code>a is 'a bc'
  b is ''
  c is ''
  </code></pre>
  
  <p>and I managed it to get this using single quotes: <code>PowerShell -Command .\somescript.ps1 -A 'a bc'</code>.</p>
  
  <p>But why double quotes are not working here as I expected?</p>