Powershell Foreach Loop Array Javascript Length Function In Python