How to get O365 user licenses in CSV?

Dear Friends, I am going to share how to fetch O365 users in csv using Powershell. I am able to hear your voice about we have a cmdlet Get-MsOlUser -All. Then why are you blabbering about fetching the users in csv ? I accept your point. Yes, there is a...