Thanks krogold for your response. For now I'm using below to run the .exe with the help of .bat file. It is successfully launching the .exe file. But, the issue here is I'm not getting complete response in the groovy. receiving only a part of response (even after changing no.of characters in the char buffer) .
Is it possible to get complete response? (I'm not sure it is possible or not but, I'm looking response something like which we get in any of the IDE)
import java.io.InputStreamReader
ProcessBuilder pb = new ProcessBuilder("cmd","/c","C:\\dummy.bat")
pb.redirectErrorStream(true)
Process p = pb.start()
InputStreamReader isr = new InputStreamReader(p.inputStream)
char[] cbuf = new char[1024]; //read 1024 characters, increse to higher amount if necessary
isr.read(cbuf);
log.info(new String(cbuf))