Php Find Index In Multidimensional Array Powershell Foreach