Php Convert Multidimensional Array Powershell Version