Powershell While Loop Array Javascript Push Object