Here is a way to solve your second problem.
You can then write a simple console app to prompt the user for input, and output it so that above trick catches the output.
Here is a way to solve your second problem.
You can then write a simple console app to prompt the user for input, and output it so that above trick catches the output.