Errors and exceptions in PowerShell are structured objects. The error message you see printed on the console is actually a formatted message with information from ...
How I can create and throw a new exception in PowerShell? I want to do different things for a specific error.