Update to use correct InvokeCommand method