During my session on scriptblocks at Summit 2018 I showed how to split a string into pairs of values
Start with this string
PS> $str = 'Jack,Jill,Bill,Ben,Eric,Ernie,Cagney,Lacey'
You want the string split in the commas – but every other comma… Read the full text.