I am trying to find a way to make Format-Table output selected rows in red and others in green.
An example that I am trying to do is output the current processes and the amount of memory they are using. I want to apply logic to the output so that processes using above a given amount of memory will be displayed in yellow and others that are even higher displayed in red.
The closest question I have found is: Color words in powershell script format-table output
How can I extract the numbers from the string to process them?