O365 actions by Powershell

Hi Everyone,

I have certain items to do in O365 listed below with PowerShell,

  1. Checking user(Email ID) has license.
  2. Assign and remove license.
  3. Check the type of license (License list)

I have username and password of Exchange online O365.