I'm trying to parse an un-structured array into columns when that array is missing delimiters. The way the array looks from a data operation after inputted into a text file is below:
DC1
49600 Reachable
49601 Reachable
49602 Reachable
49603 Reachable
49604 Reachable
49605 Reachable
49606 Reachable
49607 Reachable
DC2
49600 Reachable
49601 Reachable
49602 Reachable
49603 Reachable
49604 Reachable
49605 Reachable
49606 Reachable
49607 Reachable
The data array inside the an HTML email looks like this:
Screenshot #1:

I need it to be two columns instead, like this:
Screenshot #2:
What I've tried is a few things, first, assigning the array to a variable, $Result. I then out-file that to a text file and then email $Result in the body of an HTML email. What winds up happening is the email body looks like the blob of text in Screenshot #1. I then tried various "join" statements in various combinations to even worse results. After banging my head for several hours, I've decided to post here.
EDIT: Changed Subject line of question and the parts of the question where I mentioned strings - we are talking about arrays here, not strings. (Thanks Santiago)


ConvertFrom-Csvwith the delimiter "\s". Anyway you should share the code you have so far.