PowerShell functions don't propagate errors so don't rely on it for pipelines. Bug: https://github.com/PowerShell/PowerShell/issues/12218