title: Powershell implementation to pipe array into command
body: <p>I'm using the following Powershell command to copy one user's Mercurial.ini file into another user's profile:</p>
  
  <pre><code>&gt; copy $env:USERPROFILE\..\benm\Mercurial.ini $env:USERPROFILE\..\alex\Mercurial.ini
  </code></pre>
  
  <p>That works well. However, I'd like to write it in such as way so that I can do something like the following, specifying the users up front and piping them in to the copy command:</p>
  
  <pre><code>&gt; "benm","alex" | copy "$env:UserProfile\..\$_[0]\Mercurial.ini" "$env:UserProfile\..\$_[1]\Mercurial.ini"
  </code></pre>
  
  <p>However, the above doesn't work. Is there an elegant way to achieve what I'm trying to do?</p>