Hi @Love Arvidsson ,
Thanks for posting in Microsoft Q&A forum.
To this issue, we could set these properties as variables, and fill in the variables in the new rule.
For example,
$a = ((get-cmdlt).property1).tostring()
$b = ((get-cmdlt).property2).tostring()
new-cmdlet -para1 $a, -para2 $b, -para3 "abc", -para4 $false
For more information about use new-cmdlet to create an automatic deployment rule (ADR) for software updates, please refer to:
https://learn.microsoft.com/en-us/powershell/module/configurationmanager/new-cmsoftwareupdateautodeploymentrule?view=sccm-ps
We could find some examples in this link and use them as references.
Hope the above information can help you.
If the response is helpful, please click "Accept Answer"and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.