PWPS_dab how to create windows synchronized users?

Hello,

I'm using the follwing statement to create windows users: New-PWUserSimple -UserNames name -Description description -Email demo@email.com -Password $secpassword -SecurityProvider GLOBAL

Can someone tell me what do i need to modify to create a windows synchronized user? 

i tried to use the old PWPS command "new-pwuse" and this gives me the following error:

new-PWUser : Unable to find an entry point named 'aaApi_CreateUser2' in DLL 'dmscli.dll'.

Unable to find an entry point named 'aaApi_CreateUser2' in DLL 'dmscli.dll'.,Bentley.ProjectWise.PowerShell.Commands.NewPWUser