A stack containing strings may be created as follows: $stack = New-Object System.Collections.Generic.Stack[String]