Take a look at the PowerShell Module for VMware Validated Solutions which can be installed directly from the Microsoft PS Gallery.
In order to automate some elements of the Identity and Access Management for VMware Cloud Foundation validated solution we needed to develop a number of cmdlets to manage Workspace ONE Access. As part of that work we needed to not only configure Active Directory as a source for Workspace ONE Access but also setting the configuration and trigger the initial sync.
In particular take a look at the following cmdlets which you could use to develop a script for your own use case:
Let me know how you get on and if you have feedback or find an issues with the PowerShell Module for VMware Validated Solutions you can open an issue in GitHub or even contribute.
Note: Query answered?, please mark this response as "Correct" or "Helpful".