Script to export total hotspot users and send it to email.

Hi all.
I want help to create a Script that exports total number hotspot users and send it to email.

Thanks