Powershell Get Index Of Object In Java