I need to create a set of permutations without repetition for an arbitrary number of strings in Powershell. The simplest example is:
$x = "Alpha","Beta","Charlie"
Output would be:
Alpha
Beta
Charlie
Alpha Beta
Alpha Charlie
Beta Charlie
I haven't been able to find a useful example despite heavy Google and StackExchange searching.