title: powershell ConvertTo-Html add class
body: <p>My script is pulling information from server, than it converts to HTML and send the report by email.
  Snippet:</p>
  
  <pre><code>$sourceFile = "log.log"
  $targetFile = "log.html"
  $file = Get-Content $sourceFile
  $fileLine = @()
  foreach ($Line in $file) {
    $MyObject = New-Object -TypeName PSObject
    Add-Member -InputObject $MyObject -Type NoteProperty -Name Load -Value $Line
    $fileLine += $MyObject
  }
  $fileLine | ConvertTo-Html -Property Load -head '&lt;style&gt; .tdclass{color:red;} &lt;/style&gt;' | Out-File $target
  </code></pre>
  
  <p>Current HTML report snippet:</p>
  
  <pre><code>&lt;table&gt;
  &lt;colgroup&gt;&lt;col/&gt;&lt;/colgroup&gt;
  &lt;tr&gt;&lt;th&gt;Load on servers&lt;/th&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Server1 load is 2442&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Server2 load is 6126&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Server3 load is 6443&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Higher than 4000:&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;6126&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;6443&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>This will generate an HTML report containing a table with tr and td.
  Is there any method to make it generate <strong>td with classes</strong>, so I can insert the class name into the -head property with styles and make it red for the Higher than 4000: tds ?</p>