SyntaxFix
Write A Post
Hire A Developer
Questions
You can add:
-ErrorVariable errvar
And then look in $errvar.
$errvar