Using multiple xml models by parameter

Hi, i wanna ask you about scoring in SPSS. I have one big dataset and multiple xml models. What i need is a script or syntax that is able to score dataset and use differerent models by value of one grouping variable. Now i am using scoring wizard and i have to copy cases of each group and use correct xml model manually via scoring wizard. Then copy predicted values and copy cases for second group. I hope there is easier way. Thank you.