Hi,
Thanks for posting in Q&A.
Using "SMSTSMake" and "SMSTSModel" we could set the options on various groups and steps to target the right devices. To create the task sequence by using these Variables, maybe we could simply refer to them like any other variable like: %_SMSTSMake%. Here are some example images for you to refer to:
For more details, please refer to the following articles: https://learn.microsoft.com/en-us/mem/configmgr/osd/understand/task-sequence-steps https://www.asquaredozen.com/2020/02/20/gather-no-more-using-dynamic-task-sequence-variables-in-configmgr/
I hope this could help you. Thanks for your time.