Hi @DHoss ,
the challenge is the variable length of the values. But maybe this helps to get a step further:
$result = @()
$a = "App", "LEN", "HWP", "XYZ"
$b = "12332434", "43234364", "232432443", "32424456e456"
$c = "LED Cinema", "LEN T24i", "HP E2241i", "SJKSAL"
$count = 0
$a | ForEach-Object {
$r = New-Object PSCustomObject
$r | Add-Member -Type NoteProperty -Name Mfgr -Value $_
$r | Add-Member -Type NoteProperty -Name Serial -Value $b[($count)]
$r | Add-Member -Type NoteProperty -Name Name -Value $c[($count)]
$count ++
$result += $r
}
$l1 = $result.Mfgr -join "`t`t"
$l2 = $result.Serial -join "`t"
$l3 = $result.NAme -join "`t"
Write-Output "---------------------------------------------------------------------"
Write-Output "Mfgr : $l1"
Write-Output "Serial : $l2"
Write-Output "Name : $l3"
Write-Output "---------------------------------------------------------------------"
Output looks like this:
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten