Array to HTML

by Apr 19, 2012

I am creating an array from the data collected from the different sources and trying to covert array to HTML. It works if the source is .NET object and does not for created array. Any thoughts?

$DataIN = @{“User Name” = “John Doe”; “Computer Name” = "MyWorkstation"; “Serial Number” = "334455"}
$MessInfo1 = $EmpNumbers | ConvertTo-HTML
$MessInfo1 | Out-File "$PWDMessInfo.html"
Invoke-Expression "$PWDMessInfo.html"