title: Generating a random password according to RegEx
body: <p>I am trying to generate a 6 character password but I want each letter to match correct RegEx.</p>
  
  <p>The RegEx being: </p>
  
  <pre><code>[a-z][A-Z][0-9][a-z][!@#$%^&amp;*?+][A-Z]
  </code></pre>
  
  <p>I am currently here:</p>
  
  <pre><code>$passwd = @(1..6)
  For ($i = 0; $i -lt $passwd.length; $i++){
  Get-Random $passwd[$i] 
  }
  </code></pre>
  
  <p>But all this is doing is generating 6 random integers.</p>
  
  <p>I want to use the Get-Random cmdlet</p>