Passing a variable between a windows legacy and windows process

I have a windows legacy process and a windows process. I would like to take a list of strings in the legacy process and bring it over to the windows process. The legacy process uses the MicrosoftTeams.Activities package which is not compatible with windows projects.

I couldn’t find any activities that would help me, and the topics I read on this recommend the Invoke Workflow method, which doesn’t seem to work because of compatibility issues. Are there any solutions cleaner than writing the variable to a text file on the legacy process, and reading the same file on the windows process?

Maybe JSON can help for the data Exchange.

But at the Windows side would work generic and do not deserialize, when the Class types are not in place

Maybe we can give a better answer, when we do know a few more details,as

we do see independent to MS Teams from datatype viewpoint