start
or @
from a PowerShell command line, the following pipeline will color lines that start with ORA-
in red: PS P:\ath\to\script> sqlplus rene@ora19 @install.sql | foreach-object { $line = $_; if ($line -match '^ORA-'){$line = "$([char]27)[38;5;9m$line$([char]27)[0m"}; $line }