https://learn.microsoft.com/en-us/dotnet/api/system.management.automation.parentcontainserrorrecordexception?view=powershellsdk-7.4.0
ParentContainsErrorRecordException Class (System.Management.Automation) | Microsoft Learn
ParentContainsErrorRecordException is the exception contained by the ErrorRecord which is associated with a PowerShell engine custom exception through the...
class systemmanagementautomationmicrosoftlearn