How to Join Arrays in PowerShell (+, -join, Join-String)
To join arrays in PowerShell, use the plus operator. It returns a new array with every item from the first array followed by every item from the second: If you want one string instead of one array, use $all -join ‘, ‘. I’ll cover both below, plus the traps I hit when one side holds … Read more