ÿþ$executingScriptDirectory = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent $ReportInfoFile = $executingScriptDirectory + "\" + "GetProcess.html" get-process | select-object -property 'ProcessName','Id','CPU' | convertto-html -Title "GET-PROCESS Info as of $(Get-Date -format 'MMMM dd yyyy')" -Body "<STYLE type=text/css>body { background-color:Gainsboro; } body,table,td,th { font-family:Tahoma; color:Black; Font-Size:10pt; } th { font-weight:bold; background-color:LightSteelBlue; padding-left: 5px; padding-right: 5px; } td { background-color:white; padding-left: 5px; padding-right: 5px; } h3 { font-family:Tahoma; color:RoyalBlue; Font-Size:10pt; }</STYLE> <H2>Get-Process Info</H2>" | out-file $ReportInfoFile