@智宏 立辻 Thanks for posting in our Q&A.
For this issue, I have done a lot of research. For windows autopilot enrollment, it seems that the following resources are needed:
windowsAutopilotDeviceIdentity
importedWindowsAutopilotDeviceIdentity
windowsAutopilotDeploymentProfile
windowsAutopilotDeploymentProfileAssignment
At the same time, I find a PowerShell package about it.
https://www.powershellgallery.com/packages/WindowsAutoPilotIntune/4.8/Content/WindowsAutoPilotIntune.psm1
Note: Non-Microsoft link, just for the reference.
Hope it will give you some ideas.
If the answer is the right solution, 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.