I have a powershell script that gives some status output via write-output. I am intentionally not using write-host because the output may be captured and writt
function Green
{
process { Write-Host $_ -ForegroundColor Green }
}
function Red
{
process { Write-Host $_ -ForegroundColor Red }
}
Write-Output "this is a test" | Green
Write-Output "this is a test" | Red