Ref: http://blogs.msdn.com/b/powershell/archive/2006/11/03/erroraction-and-errorvariable.aspx
Ever run a command where the exit status doesn't matter? (like a delete where the folder may or may not exist?)
Use -ErrorAction: (Continue [default], Stop,SilentlyContinue, Inquire)
Sample: Remove-Item -Path "D:\myDir" -ErrorAction SilentlyContinue # Doesn't matter if this doesn't exist