Fix execute_command function to show all the output