I have the following test script in powershell, the issue I am facing is that I want to store the details of the error in a custom object or a variable as a string, right no