Setting PSHost.PrivateData prevents Write-Error from sending error text to the PSHostUserInterface in PowerShell 7.