Have you tried the /filter command? It has a -c switch that clears the output window/file before writing to it.