title: Passing unknown number of values to PowerShell script parameter?
body: <p>I am familiar with how to accept parameters or arguments from the command line and pass them to PowerShell:</p>
  
  <pre class="lang-none prettyprint-override"><code>powershell.exe -file myscript.ps1 -COMPUTER server1 -DATA abcd
  </code></pre>
  
  <pre class="lang-bsh prettyprint-override"><code>[CmdletBinding()]
  Param(
      [Parameter(Mandatory=$True)]
      [string]$computer,
  
      [Parameter(Mandatory=$True)]
      [string]$data
  )
  </code></pre>
  
  <p>That’s fine, but what if the <code>$computer</code> argument is more than one item and of an unknown number of items?  For example:</p>
  
  <pre class="lang-none prettyprint-override"><code>Powershell.exe -file myscript.ps1 -COMPUTER server1, server2, server3 -DATA abcd
  </code></pre>
  
  <p>Here we do not know how many <code>$computer</code> items there will be. There will always be one, but there could be 2, 3, 4, etc.  How is something like this best achieved?</p>