I have a PowerShell script that creates a new type using C# code that I borrowed from somewhere else. I\'ve discovered that although I can capture PowerShell errors, I don\'t g