Add function execute_command_to_ui_file