Hi,
Please refer the username requirements as mentioned in the following Microsoft documentation and proceed to correct it in your script
Please mark as "Accept the answer" if the above steps helps you. Others with similar issues can also follow the solution as per your suggestion
Regards,
Manu