Get invocation command correctly