I am getting stuck here:
$file = gci C:\...\test\ | %{$_.name}
for ($i=0; $i -lt 100; $i++) {
$array_$i = gc C:\...\test\$($file[$i])
}
I am just trying to create multiple arrays for each text file in the directory.
Everything is working fine except the array name being declared - $array_$i.