If you want to change the colour of the error text in PowerShell you can do it like this:
$host.PrivateData.ErrorForegroundColor = 'Green'
If you want to change the colour of the error text in PowerShell you can do it like this:
$host.PrivateData.ErrorForegroundColor = 'Green'