Add an option to redirect the commands output