I\'ve found some interesting behaviour in PowerShell Arrays, namely, if I declare an array as:
$array = @()
And then try to add items to it
The most common idiom for creating an array without using the inefficient += is something like this, from the output of a loop:
+=
$array = foreach($i in 1..10) { $i } $array