Powershell While Loop Array Javascript Length W3schools