use require_command! instead of calling its definition
Merge pull request #17279 from aditya-kapoor/call-methods

use require_command! instead of calling its definition