title: Run function with Start-process within script
body: <p>I am trying to initialize a TON of powershell windows to help complete a scan very quickly. Each window needs different input and I have an array variable giving that input. The start-process function seems to work, but it gives me the unknown function error if I use <code>"</code> and gives me absolutely no response when I use <code>'</code></p>
  
  <pre><code>foreach($search in $Partlist){
      start-process powershell.exe -argumentlist '-nologo -noprofile -executionpolicy bypass -command .\Get-Data -search $search -department $PNdept -accuracy $accuracy; pause'
      start-sleep -s 5
  }
  </code></pre>
  
  <p>I do not understand why I get the unknown function error, but I believe I get no response because the variables are not global, I've declared the variables global and still no luck. Maybe I'm missing something. Thanks.</p>