title: How to have both write -host and html
body: <p>I have written a code snippet and I have incorporated write host in it i want both write host and convert html to run for this snippet can any one help me with that.</p>
  
  <pre><code> $arrComputers = get-Content -Path "C:\Computers.txt"
      foreach ($strComputer in $arrComputers)
      {
          $colItems = get-wmiobject -class "Win32_BIOS" -namespace "root\CIMV2" `
          -computername $strComputer
         foreach ($objItem in $colItems)
         {
           write-host "Computer Name: " $strComputer
            write-host "BIOS Version: " $objItem.BIOSVersion
        }
  
         $colItems1 = get-wmiobject -class Win32_logicaldisk -Filter "DeviceID = 'C:'" -computername $strComputer
         foreach ($objItem1 in $colItems1)
         {
          $e=$objItem1.freeSpace/1GB
           write-host "Total Space:  " $e
           }
  
          $colItems4 = Get-WMIObject -class Win32_PhysicalMemory  -computername $strComputer
        $colItems5=$colItems4 | Measure-Object -Property capacity -Sum 
        foreach ($objItem4 in $colItems5)
     {
        $e4=$colItems5.Sum/1GB
        write-host "Memory :  " $e4
     }
  
  
      }
  </code></pre>