Why not Write-Error in a place like this? https://github.com/alexbarthnet/PowerShell/blob/423ed47770fa6310d78c04a3cb53dbf7fec62103/Modules/ADSchemaFunctions.psm1#L315