I used the below query and in my answer one row add with all of the other rows value. how can i fix it?
$htm = @()ForEach($evt in $data)
{
$htm += [PSCustomObject]@{
ServerName = $evt.ServerName
EventID = $evt.EventID
EventType = $evt.EventType
LogDay = $evt.LogDay
Count = $evt.LogCount }
}