Set-CASMailbox UserMailbox -ImapEnabled $false

 Set-CASMailbox UserMailbox -PopEnabled $false

To enable imap or pop to one user typ