Use ui_file_as_string in execute_command_to_string