New command exec method.