title: Powershell arguments list passing like -a <args list> -d <args list>
body: <p>I want to write a powershell ps1 script, which needs 2 argument sets,(-a -d) and each can have upto n attributes. How to implement that?</p>
  
  <pre><code>example : DoTheTask -a &lt;task name 1&gt; &lt;task name 2&gt; ...  -d &lt;machine name 1&gt; &lt;machine name 2&gt;...
  </code></pre>