I've been reviewing the other related threads and have yet to find an answer. I'm sure there are some extra braces or quotes that I'm missing. The script prompts for the location of each CSV, whose path gets passed as a variable to be used by Import-CSV. It doesn't get past that point and presents an error stating it doesn't recognize thecmdlet.
The script is here: http://pastebin.com/PnWXqhPv
The error is here: http://pastebin.com/Pg1Ehb0d
I can pass on the CSV files, but they effectively are structured as so:
--
tenant-mailboxes.csv
DisplayName,SamAccountName,UserPrincipalName,FirstName,LastName,Password,Alias
John Doe,john.doe,john.doe@mbu.ca,John,Doe,,john.doe
--
tenant-distribution-groups.csv
DisplayName,Alias
MBU Info,info.mbu
--
tenant-mail-contacts.csv
John Doe,johndoe@externaldomain.com,John,Doe External,john.doe.external