How do I select(?) an element in a 3D array and place the appropriate elements into another array? Powershell Here is a portion of the code.