title: Powershell script convert to html and change font/cell color based on number threshold
body: <p>I have a simple powershell script that runs several queries against a list of servers getting cpu, disk, and mem counters. Im importing the csv when its populated and converting to html.. also using css in the script to color the rows but i want to highlight and cell or text in RED if its above 80 or below 5.
  Here is the CSS portion of the code and importing the CSV.. </p>
  
  <pre><code>$css = @"
  &lt;style&gt;
  h1, h5, th { text-align: center; font-family: Segoe UI; }
  table { margin: auto; font-family: Segoe UI; box-shadow: 10px 10px 5px #888; border: thin ridge grey; }
  th { background: #0046c3; color: #fff; max-width: 400px; padding: 5px 10px; }
  td { font-size: 11px; padding: 5px 20px; color: #000; }
  tr { background: #b8d1f3; }
  tr:nth-child(even){ background: #dae5f4; }
  &lt;/style&gt;
  "@
  
  Import-CSV "health.csv" | ConvertTo-Html -Head $css -Body "&lt;h1&gt;Email Report&lt;/h1&gt;`n&lt;h5&gt;Generated on $(Get-Date)&lt;/h5&gt;" | Out-File "health.html"
  </code></pre>
  
  <p>is it possible when using convert to html?</p>
  
  <p>Here is a sample of the CSV</p>
  
  <pre><code>"Server","CPU","MemFreeGB","CFreeGB","FFreeGB"
  server1, 14.72, 17.18, 52.79, 80.42
  server2, 0.2, 28.95, 59.86, 77.15
  server3, 30.23, 13.5, 54.47, 83.14
  </code></pre>