added console helper function to easily open a windows console and setup stdin, stdout and stderr to input and output to it