api minor The invoke function can now be called with the cmd as the first parameter and the args as the second.