Dynamic invoking is not supported currently. It’s in progress I believe. Please check this post: Invoke Workflow File activity is broken in the 2022.10 release - #15 by alexandru.
Edit: In case of a Windows process, that is. In Legacy it should work.