Write Output Of Command To File