Example Powershell Script With Functions In Java