Hello @devopsfj , apoligies for any confusion caused by my initial answer. As stated by the SO post shared by @azure enthusiast, creating an Azure B2C tenant with a service principal is not possible by design since we need a user to request the operation in order to assign him as the first global administrator of the new tenant.
The current workaround for automation purposes is to obtain an access token as a user using the ROPC flow. Also, there's an idea posted in the Azure Feedback Forums that can be upvoted. The more votes it gets the more the product team may consider it for future implementation.
Let us know if you need additional assistance. If the answer was helpful, please accept it and rate it so that others facing a similar issue can easily find a solution.