Export data to HTML file in table format Stampa MyCommandLet | ConvertTo-Html Sender, {$_.Recipients}, MessageSubject | Set-Content C:\prova.html