Function In Powershell Script With Parameters In Java