Equivalent of set matching devices syntax

Hello there. I found this original post and I wonder how I can "set matching devices to"
like in the post bellow. "Set variable" is not the same.

THX.