title: Return to outer loop in PowerShell when matching conditions
body: <p>I'm writing a simple PowerShell script to get all the users from a specific OU in <a href="http://en.wikipedia.org/wiki/Active_Directory" rel="nofollow">Active Directory</a> (AD) and all the folders from a directory, then compare each username with each foldername to verify that the user has a folder there, and do something.</p>
  
  <p>The script shown below works fine, but when it matches the strings, I want it to break and return to the outer <code>For-EachObject</code>, switching the username. (It's not necessary to verify the rest of the list if it already found one), but the break is breaking the entire script, it just ends.</p>
  
  <pre><code>$PerfilFolder = Get-ChildItem $FileServerPath | Sort
  Get-ADUser -SearchBase $SB -Filter * | Sort SamAccountName | % {
      $UserName = $_.SamAccountName
      $PerfilFolder | % {
          if($UserName -match (($_.Name).Split(".")[0])){
              #Match!
              #Do something
              break
          }
      }
  }
  </code></pre>
  
  <p>I already tried <code>return</code> and <code>continue</code>, but all of them have the same behavior. What should I do?</p>
  
  <p>Also general improvements tips are welcome :)</p>