command.sh | tee -a output.txt