Yes, it is possible to perform the action from a function, but there is the coupling problem between who calls the action and who performs it.
Using the Command Pattern, who calls the action doesn’t know who execute it, so if the “executer” changes he never know that 😄