I wish to learn how match scripts are written and how they can be used for the generation of virtual services
This Scripting guide may help you.
Can you please provide the link of the aforementioned "Scripting Guide" ?
Thanks and Regards
You can find the same document Venkat attached to his response, in the link below:
DevTest 8.0 - Scripting Guide - V1.1.pdf
Hope it helps.