You can try the below given cmdlet to bulk import/migrate contacts into MSExchange :
Import-Csv .\ExternalContacts.csv|
foreach-object{if (Get-MailContact -anr $_.name) {write-host $_.name 'is a duplicate entry!!!'}
else {New-MailContact -Name $_.Name -DisplayName...