Take a look at how you can create a local admin via Intune.
On my demo I used a custom configuration profile with the 2 OMA-URI strings below:
./Device/Vendor/MSFT/Accounts/Users/Admin5/Password
./Device/Vendor/MSFT/Accounts/Users/Admin5/LocalUserGroup
I hope you enjoy and thanks for watching
Jackson Felden