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

The first command sets $csv equal to the Import-Csv command with the path to the RemovePermissions.csv file. The second command pipes  the contents of the $csv variable to the Remove-MSOnlineMailPermission cmdlet and passes the $cred credentials.  Sample CSV file: Column titles: Identity,TrustedUser,RemoveFullAccess,RemoveSendAs Row1: [email protected],[email protected],True,True Row 2: [email protected],[email protected],True,False