How To Read Script Output In Java