You can create users in Azure AD with PowerShell:
https://www.petri.com/create-azure-active-directory-users-using-powershell
https://www.petri.com/use-powershell-create-assign-licenses-office-365-users
The last one includes assigning a license as I expect you would need to create the user account and then assign a Power BI license to it.