These code snippets should help anyone interested in running Python scripts in Maya standalone from Unreal. The first script is run in Unreal. It requires the path of the script to be run in Maya, any args to be passed to Maya, and provides basic output handling. The second script is a sample Maya script, which enables a plugin and runs a function taking an arg passed in from the first script - in this case a file path. The print statements appear in the Unreal output log.
https://dev.epicgames.com/community/learning/tutorials/BEny/unreal-engine-run-maya-python-scripts-from-unreal