Run system commands and email output