Running a console application within an GUI application