[System.Collections.Generic.List[PSObject]] $arr = @()
$arr.Add($objectA)
$arr.Add($objectB)
Use to create and add items to a PowerShell array
[System.Collections.Generic.List[PSObject]] $arr = @()
$arr.Add($objectA)
$arr.Add($objectB)
Details