I try to find out how to merge 2 arrays name, this is what I try to run but it didn't works
for ($i=1; $i -le 4; $i++) {
$test[$i] = Invoke-WebRequest http://lon-serv-$i/mani.json -TimeoutSec 30 -ErrorVariable RestError -ErrorAction SilentlyContinue
}
What I want to happen is that I'll have 4 arrays:
$test1
$test2
$test3
$test4
Anyone knows what I do wrong?