$coll = New-Object 'System.Collections.ObjectModel.Collection`1[System.String]' $coll.Add("1"); $coll.Add("2"); foreach ($t in $coll){ Write-Host $t }