Michael Niehaus seems to have stumbled onto something pretty interesting here.
All the power comes down to “mdmlocalmanagement.dll”, but he has a module “LocalMDM” in the Powershell Gallery for convenience.
I can see this being utilized to implement MDM commands (with on-prem OR AzureAD) easily as tasks. For example, I just used his module to hide the notorious “chat” icon from the taskbar and taskbar settings on a workgroup Windows 11 computer.