Hello Boris,
There is no possibility to use the script this way. However, you can enable displaying the license count in the Microsoft 365 section of the user creation form.
They will be prompted whether to create a Microsoft 365 for the new user and will see the licenses and their counts: