InvokeCommand finally worked