This is a simple example on how you can automate tests for a console application that interact with standard input and standard output.
The tested application read and sum every new line and will provide the result after a single white line is provided. The power shell script write "pass"...