Step 1: On you Windows server log on with a privileged account, e.g. Administrator
Step 2: Go to Start > Control Panel > System and Security > Administrative Tools > Task Scheduler
Step 3: In the right panel click on Create Basic Task
Step 4: Enter a name like “Sync to WordPress* and click Next
Step 5: On the next page define the scheduled dates when the task should run. Every night should be often enough.
Step 6: On the Action page select Start a program
Using PowerShell
Step 1: PowerShell is available on Windows 7 and later, as well as Windows Server 2008 R2 and later
Step 2: The Program/script input field should contain powershell
Step 3: The input field Add arguments (optional) must be populated with the following command. Some parameters must be adjusted e.g. ###SERVERURL### (must point to the WordPress instance), ###TOKEN### (must contain your auth code)
-Command “Invoke-WebRequest -Uri ###SERVERURL###/wp-admin/admin.php -Method POST -Body @{‘next_ad_int-task’=’sync-to-wordpress’;’auth-code’=’###TOKEN###’}”