View PowerCLI cmdlets handle all errors as non-terminating errors that halt the execution of a cmdlet but do not terminate a pipeline. You can examine the $error automatic variable to determine the cause of an error.

To control how PowerShell handles non-terminating errors and how it displays errors in the shell, set the standard PowerShell $ErrorActionPreference and $errorView automatic variables.