I'd like to create a table with headings from a series of strings, which have been pulled from an output. I've already used this...
$Scopearray = @("$server","$ip","$ScopeName","$Comment")
To turn this...
$ip = $Trimmed[0]
$server = $Trimmed[1]
$ScopeName = $Trimmed[2]
$Comment = $Trimmed[3]
Into this:
PS C:\WINDOWS\system32> $Scopearray MyServer.domain 10.1.1.1 NameofScope ScopeDetails
But I need to turn that into a table, something like this:

I've tried the below, and a copule of other multidimentional examples, but I'm clearly missing something fundamental.
$table = @()
foreach ($instance in $Scopearray) {
$row = "" | Select ServerName,IP,ScopeName,Comment
$row.Heading1 = "Server Name"
$row.Heading2 = "IP Address"
$row.Heading3 = "Scope Name"
$row.Heading4 = "Comment"
$table += $row
}