add hook for test frameworks to run a command by type