What he said. To create output from a command-line, after you've typed the command and any parameters, BEFORE you hit enter, type > [path to save file]\filename.txt. Example:
[command] [params] > c:\logfiles\format.txt
">" (sans quotes) is the command for output.