Php Foreach Key Value Multidimensional Array Powershell Script