How to move data from Azure Cosmos DB to Mongo DB

Hi Team,
Hope you all are doing well.
i need help on write a script to move the data from Azure Cosmos Database to Mongo Database.
For example in Cosmos there is collection called employeeData, under this collection address is subdocument. I need to move the address sub document to Mongo DB.
I hope the requirement is understandable. please i need guidance on this script.