First, as this leads to my question, I\'ll start by noting that I\'ve worked with XML a fair bit in PowerShell, and like how I can read data from XML files, quickly, into ar
The simplest way to initialize an array
Create array
$array = @()
Create your header
$line = "" | select name,age,phone
Fill the line
$line.name = "Leandro"
$line.age = "39"
$line.phone = "555-555555"
Add line to $array
$array += $line
Result
$array
name age phone
---- --- -----
Leandro 39 555-555555