Listing 2: Reverse-Stream.ps1 begin{ $stack = New-Object System.Collections.Stack} process{ $stack.Push($_)} end{$stack}