I want to change the color of output in Powershell intelligently, but it seems there is no way. For example: "grep --help" would give me help information in white color, but I want to highlight some words like "NO", "Except for" and short/long arguments. The original color engine only works in cmdlet implement; they cannot process the color of other program's output. So, is there a way to call my callback function before the output of a command is print to the console so that I can change something easily?
For example:
My powershell shows "rg -h" like:

But another opensource terminal holding powershell shows "rg -h" like:

how to make my native powershell behaves just like the later?