How to Redirect Output from the Cmd to Text File