How I can create and throw a new exception in PowerShell?

I want to do different things for a specific error.

Edit
Report