|im not sure what you are asking? but i think your asking how to output the echo to a external file?|
if so this is how
command >"your directory"
This will write the command and then when it is done again will over write it
command >>"Your direcory"
This will write the next command on a new line