PowerShell Exception handling using "Trap" explained - links
PowerShell has powerful exception handling, but it is badly documented and takes while to understand what the heck they actually want to do to wire up the exception handling.
I'm normally not such a link poster, this is more of a "post-to-self" item that might be useful for others as well.
- See Trap [Exception] { “In PowerShell” } for a very good explantation
- See PowerShell: Try...Catch...Finally Comes To Life for a Try/Catch/Finally implementation in PowerShell for the more c# oriented developers