Fetch Users using C#

Hi

I am executing the below command, i want to fetch the list of licenses using c#

Get-csonlineuser -Identity user@user.com |select-object *policy

 

Regards