Run the python script in motionbuilder programmatically

I want the python code to automatically open motion builder and automatically execute a location-specific python script in MB。
similar to the function in python:
sys.path(‘python C:\Test.py’)

I have searched a lot of materials but failed to find the answer. If anyone knows the answer, I hope you can give me some Suggestions. Thank you very much^-^~

If I understand correctly the two following links should help you achieve your goals:

you can learn about executing an application via python here:

motionbuilder has the ablity to run python script when on starts up:
http://docs.autodesk.com/MOBPRO/2017/ENU/MotionBuilder-Developer-Help/files/GUID-391A97C9-35B9-4C98-A8CE-5CD718A7D70A.htm#!/url=./files/GUID-989682FC-305F-4925-8B37-66490BC45C4C.htm

combining these two should give you what you want.

This method is different from what I want, which I want to do in python code