title: How to clear $Error in PowerShell?
body: <p>Is there a way to clear the $Error variable that tracks errors in a PowerShell session?</p>
  
  <p>If so, how do you do it?</p>
  
  <p>I have tried:
  <code>$error.clear</code></p>
  
  <p>In the PowerShell ISE on Windows 7 and the $Error array is still populated.</p>