title: Can Powershell Run Commands in Parallel?
body: <p>I have a powershell script to do some batch processing on a bunch of images and I'd like to do some parallel processing.  Powershell seems to have some background processing options such as start-job, wait-job, etc, but the only good resource I found for doing parallel work was writing the text of a script out and running those (<a href="http://blog.isaacblum.com/2010/01/22/powershell-multithreading-omg/" rel="noreferrer">PowerShell Multithreading</a>)</p>
  
  <p>Ideally, I'd like something akin to parallel foreach in .net 4.</p>
  
  <p>Something pretty seemless like:</p>
  
  <pre><code>foreach-parallel -threads 4 ($file in (Get-ChildItem $dir))
  {
     .. Do Work
  }
  </code></pre>
  
  <p>Maybe I'd be better off just dropping down to c#...</p>