@Smail IFRI European Partner, Thanks for posting in Q&A.
For your issue, according to the official document, upgrading from windows home to windows pro can only be done manually by entering the product key, if you want to use MDM or other methods, you can first upgrade windows home to a version that supports the Windows autopilot method, and then refer to the method mentioned by @glebgreenspan to upgrade to Windows pro.
https://learn.microsoft.com/en-us/windows/deployment/upgrade/windows-edition-upgrades
Or you can upgrade Windows Home to Pro using a Microsoft 365 Windows upgrade license.
Non-official, just for reference.
Hope above information can be helpful.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.