brew commands

Shows a list of built-in commands (but not shortcuts) and searches
for any external commands on the path.

Closes #22509.
move paths to utils