Exporting database from one environment to another environment in MongoDB using Mong dump and Mongo restore

Looking for automated way only. Yes got the active dbs list with query for now but in Azure sql, DB naming will be little different compared to mongodb