Add run_command() function and RunSed class.