You would need to look at using the Mendix SDK to do this, and it’s not a simple job. If this is a one off thing, it may be quicker to create them one by one. If you will be doing this sort of thing in the future, then it may be worth investing the time to do it programatically.
https://docs.mendix.com/apidocs-mxsdk/mxsdk/