A function can be called in a command format 1)
A command for a cli interpreter is the equivalent of a expression (statement) that returns as value an exit code.
See Process - Command (Command line)
The first word generally specifies:
commandName arg1 arg2 .... arg3