Add getCommand public method.

Even returning a string containing ```%input%```, it proved very useful to me when debugging code.