Array

$<name> = @()

Empty array.

add not possible.

$<name> = New-Object System.Collections.ArrayList

add possible.

Updated: 2026 Aug 19