ErrorAction
ErrorAction is a common parameter used in PowerShell to control how a command handles non-terminating errors. When supplied, it applies to that command’s execution and can override the global error handling behavior for that invocation. It is often written as -ErrorAction (abbreviated -EA) and is one of several common parameters that influence error flow.
The named values are SilentlyContinue, Continue, Stop, and Inquire. SilentlyContinue suppresses the error message and continues
ErrorAction affects only the command it accompanies and does not alter other error handling mechanisms, such
Suitable use cases include suppressing expected but non-blocking failures (SilentlyContinue), ensuring a failure stops a pipeline
Related concepts include the larger error-handling framework in PowerShell, such as the distinction between terminating and