run-command: mark run_hook_with_custom_index as deprecated