How do you get automation test results from the command prompt?

I am working on a game, and on the cooks I want to have them automatically run the automation tests and give me a result in a text file or something of the sorts.

I need to know how to run an automation test and get the results all in the command prompt, without having to open up my game manually.