Zend certified PHP/Magento developer

Batch Script to Pause and Resume One Drive Sync?

Is there a batch script or other way to Pause or Resume OneDrive local sync? I have some folders that are synced on One Drive. But I do not want it to continuously sync. I would like to have a a script that can pause/resume the sync. Currently, I do it manually, but sometimes, it take a bit to get the Pause sync settings.

Thanks.