Powershell While Loop Array Javascript Documentation