Configmgr Add-CMScriptDeploymentType -AddRequirement

Hi
I am starting to create a script to add CM (CB1602) applications into ConfigMgr, it seems to work fine, but I need to have a requirement on the deploymenttype. In the GUI it will be Operating system –> one of –> Windows 10 x64

I have found the parameter -AddRequirement, but i cannot figure out how to add values. show-command says it is a Type:Microsoft.SystemsManagementServer.DesiredConfigurationManagement.Rules.Rule.
I cannot find any useful documentation on this switch.

Have any of you played around with this?

Thank you in advance
Jens

I have not and I would have thought it would be similar to how you have to create a schedule with new-cmschedule and apply it your collection or deployments. But it does not appear to be that way. See these examples

https://powershell.org/forums/topic/help-me-understand-how-this-works/
Constructing SCCM Rules with PowerShell

Hi Jonathan
Thank you for the links, it worked like a charm

/Jens