title: PowerShell ParamArray
body: <p>I would like to create a function that supports a param array, similar to the ParamArray in VB.Net:</p>
  
  <pre><code>function foo{ 
  
     param(
       $a,
       $b, 
       [Array]$arr
     )
  
     write-host "a: $a"
     write-host "b: $b"   
     write-host "arr: $arr"
  
     Foreach($s in $arr) {
       write-host $s
     }
  
  } 
  
  PS&gt; foo -a "abc" -b "123" -c 456 -d 789
  </code></pre>
  
  <p>Unfortunately, parameters 'c' and 'd' are not found.  Is there a way to structure the <code>Param()</code>definition to do support my needs?</p>