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:\’)

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:!/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