So my code looks like this. My question is I'm trying to find a way to add color highlights to certain cells. So for example in the Test-MemoryUsage function the script will produce information about the server printing out the Total Size and the Percent Free. I would like to able to add a style where if the Percent free is less than a number then it will highlight more so red and if it is in good standing then it will highlight green.
When you start getting beyond basic HTML + CSS using ConvertTo-HTML, you'll need to do a loop and manually generate the html code adding style tags or another options is using some fun methods like this: