title: Powershell multiple function params from ValidateSet
body: <p>I'm writing a script with PowerShell and at some point I needed to use ValidateSet  on function params. It's a very good feature, but what I need is something more than that. </p>
  
  <p>For example </p>
  
  <pre><code>Function JustAnExample
  {
      param(
          [Parameter(Mandatory=$false)][ValidateSet("IPAddress","Timezone","Cluster")]
          [String]$Fields
      )
  
      write-host $Fields
  }
  </code></pre>
  
  <p>So this code snippet allows me to choose one item from the list like that<br>
  <code>JustAnExample -Fields IPAddress</code>  </p>
  
  <p>and then prints it to the screen.
  I wonder if there is a possibility to allow to choose multiple values and pass them to function from one Validation set like so</p>
  
  <pre><code>JustAnExample -Fields IPAddress Cluster
  </code></pre>
  
  <p>Maybe there is a library for that or maybe I just missed something but I really can't find a solution for this.</p>