Powershell While Loop Array Javascript Length Of Associative Array