Add invoke convenience method to Command

Implementation of #40 by @AliSoftware