Powershell Function Not Returning Array In Java