One of the experimental features new PowerShell v7 preview 5 is the Get-Error cmdlet. The features description states:
Enable Get-Error cmdlet that displays detailed information about ErrorRecords included nested objects
Enable the feature:
PS… Read the full text.