Powershell Iterate Through Array Python Memory