I'm receiving the following error when running a for loop on Windows. I run the exact same code on macOS or Linux and it runs perfectly fine. The length variable outputs the desired value as well. Appreciate any help in advance!
System.IndexOutOfRangeException: 'Index was outside the bounds of the array.'
```
string getImageIds = coms.WinCli(imageIds);
string[] lineInt = getImageIds.Replace("\r", "").Split('\n');
int length = lineInt.Length;
for (int i = 1; i <= length; i++)
{
string notWorking = lineInt[i];
string twistScan = coms.WinCli($"{twistDir} images scan -u {username} -p {password} --address {address} --vulnerability-threshold high {notWorking}");
}```