Updated run_executable definition with the single definition for all scenarios