$stack = New-Object -TypeName System.Collections.Stack # or $stack = [System.Collections.Stack] @()