title: Start sync of Active Directory using SDK or API
body: <p>I'm trying to centralize all onboarding-related account creation into a single app. When it comes to the on prem AD server and Office 365, I notice an admin was using a powershell script that does something like this:</p>
  <pre><code>Invoke-Command -ComputerName $server -ScriptBlock {
      Import-Module adsync
      Start-ADSyncSyncCycle -PolicyType Delta
  }
  </code></pre>
  <p>Is there a way to do the same thing via a C# SDK or a REST API? I can keep the Powershell script if needed, but if there's a set of classes or APIs available I'd prefer that.</p>