Use redirection.
<command to start program> > <path\filename>
To avoid over writing the original use >>
The double redirection appends the output instead of over writing the original. If you append output, create an empty file with the filename first.