How to clear $Error in PowerShell? February 28, 2023 by Tarik It is a .NET method call so you need parens: $error.clear()