Does this help? https://learn.microsoft.com/en-us/windows/win32/dmwmibridgeprov/mdm-remotewipe
If the device is managed by Intune or Co-managed, it would be easier to trigger wipe from Microsoft Endpoint manager admin center
Regards,
Sandy