Powershell Loop Through Multidimensional Array Code In Python