title: Go to next item in ForEach-Object
body: <p>I have a PowerShell script that does some checks on all Domain Admins in a number of domains.
  For each user account a number of checks are preformed. When one of them fails the script should go to the next admin in the list.</p>
  
  <p>I currently have something like this (simplified):</p>
  
  <pre><code>Get-QADGroupMember "Domain Admins" | Select-Object SamAccountName | ForEach-Object {
  
      #Do something
      if(!ThisCheckIsOK)
      {
          break;
      }
  
      #Do something else
      if(ThisCheckIsNotOK)
      {
          break;
      }
  
      ...
  }
  </code></pre>
  
  <p>This stops the whole script. Is there a way to go to the next element?</p>
  
  <p><code>$foreach.movenext()</code> does not work since <code>$foreach</code> is <code>null</code>.</p>