CRM Dynamics data can be exported using the data migration tool by first generating the data schema file and using the later to export selected entities and fields. The same data migration tool can be used to import data into other environments. However it is still a manual process. I have written a script using Microsoft.Xrm.Data.PowerShell module in PowerShell to automate the data import. The zip generated by the export needs to be unzipped so that the path of the files can be passed to the method called to import the data.