Powershell While Loop Array Javascript Push Function In Python