Removing unwanted "system or script generated" Columns from Email Body

I've written a powershell code to generate a table in the body of an email for select users. The result of the execution for some reason includes "RowError", "RowState", "Table", "ItemArray", and HasErrors columns. I do not know if these are hidden columns coming from a SQL view that my code is reading or my own code generating them with each line it processes. I have tried to have PowerShell simply ignore the columns in the body of the HTML but am not seeing any change with each test email sent.

The Code  SQL

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.