How to change virtualserver variables in Pre and Post Domain Modification Scripts

How can I change virtualserver variables in Pre and Post Domain Modification Scripts, for example auto-fill description of virtualserver based on other fields?