Add command for calling an object's method

This PR adds a command which was previously missing.
Targets #429.