I collect two files that both contain an equal number of strings and am trying to join them into 1 object with each being a named propery.
$Users = Get-content C:\temp\Users.txt
$Languages = Get-content C:\temp\Languages.txt
Using the code below:
$myHashtable = @{
Name = $user
Language = $Languages
}
$myObject = [pscustomobject]$myHashtable
The $myObject looks like
Name Language
--------- -------------
{Todd, Sara, Mike...} {English, Spanish, French...}
Can I adjust my code in so $MyObject outputs the following?
Name Language
--------- -------------
Todd English
Sara Spanish
Mike French