The first command sets $csv equal to the Import-Csv command with the path to the csv file. The second command pipes the contents ...

The first command sets $csv equal to the Import-Csv command with the path to the csv file. The second command pipes  the contents of the $csv variable to the Add-MSOnlineMailPermission cmdlet and passes the $cred credentials.  Sample CSV file: Column Titles: Identity,TrustedUser,GrantFullAccess,GrantSendAs Row1: [email protected],[email protected],True,True Row2: [email protected],[email protected],True,False