Added Threads to read the output to overcome the buffer issue in windows