How do you run a commandline program and output the program's output to a file such as in dos where you add >output.ext to output the command's output to the said file?