4
@{
"exception" = $PSItem.Exception.Message
"innerException" = $PSItem.Exception.InnerExceptionMessage
"traces" = @{
command = $PSItem.InvocationInfo.MyCommand
BoundParameters = $PSItem.InvocationInfo.BoundParameters
ScriptLineNumber = $PSItem.InvocationInfo.ScriptLineNumber
PositionMessage = $PSItem.InvocationInfo.PositionMessage
ScriptStackTrace = $PSItem.ScriptStackTrace
}
}ну видимо как-то так

