title: Start-Process : A positional parameter cannot be found that accepts argument
body: <p>Trying to get a variable into Start-Process msiexec, however, when I run the script, it returns:</p>
  
  <p>Start-Process : A positional parameter cannot be found that accepts argument </p>
  
  <p>'{BCF4CF24-88AB-45E1-A6E6-40C8278A70C5}'. </p>
  
  <p>Powershell script:</p>
  
  <pre><code>$properties = "identifyingnumber","name"
  $filter = "Name LIKE '%Some software%'"
  
  $getWMI = Get-WmiObject -Class win32_product  -Filter $filter | Select-Object -Property $properties | Sort-Object Name
  if ($getWMI -and $getWMI.Length -eq 2) {
          $id0 = $getWMI[0].identifyingnumber
          $id1 = $getWMI[1].identifyingnumber
          (Start-Process msiexec.exe -ArgumentList '"/X' $id1 '/QN KLPASSWD=randompass'"" -Wait).ExitCode  
  }
  else { exit }
  </code></pre>