8,330 questions
$OrderNumbers = @(1,2) … $OrderInfo.count-1
In the array declaration you use name $OrderNumbers and in the for loop an other name $OrderInfo ; that don't work =>
$q = 0
$t = 1
$OrderNumbers = @(1,2,3,4);
Write-Host $OrderNumbers.count;
$x=1;
for ($y=0; $y -le $OrderNumbers.count -1; $y++)
{
Write-Host "yo";
$x++;
Write-Host $x;
}