Select Object From Array Powershell If Elseif Else Matlab