I would like to know if there is a way to sync MDM policies using cmd command instead of press sync because some time automatic sync fails .
We have asked our VMWare rep multiple times if this is possible, as well as opening a support ticket through to VMWare support and the answer has always been 'No' but if you do find a way we would love to know.
I'm also not sure if there is an official way to do this.
But you could try what happens when you run AWProcessCommands.exe or any of the other executables located at C:\Program Files (x86)\Airwatch\AgentUI
This should ONLY be used for testing and troubleshooting purposes. Using this in any type of automation on the device is NOT recommended.
Windows 10 leverages modern management built into the device for real-time communication, thus you should troubleshoot why this communication is not working rather than trying to force syncs on the device. Please refer to Troubleshooting Windows 10 for more details on troubleshooting. There are also improvements to our Intelligent Hub which will start to self heal these types of issues as well.
Back to your question, please refer to this blog on how to force this sync programmatically: https://oofhours.com/2019/09/28/forcing-an-mdm-sync-from-a-windows-10-client/