Permutations with the heap algorithm PowerShell script to create permutations from an input array with the heap algorithm. Example: PS> Permutation.ps1 -ToPermute 1,2,3