I have this requirement:
ListItem -------- ABV DEF GED ZAF
NOTE: ListItem is from an output of process one at a time.
foreach ($list in $listItem)
{ # Want to turn this into single row as each item get loaded
ABV,DEF,GED,ZAF
}
What I have done to solve this is to land this entries into file first before processing with the code below
$list = Get-Content -Path C:\Ftest
[string]::Join(',' , $list) | Set-Content -Path C:\FFtestFinal
What I cannot figure out is how to build the list without landing it in a file. I want to land it directory in C:\FFtestFinal with the values
ABV,DEF,GED,ZAF
.