Can you point me to any document or reference on the Quest support site that I can use to understand formatting syntax when writing custom scripts?
Scripting formatting and syntax for Foglight follows Groovy standard. There are many online resources and books available. We do not provide any directly.
Quest Communities is also a good resource for advice and questions you may have. There are many experts who may have experience in this area and can offer suggestions on how to design and develop a solution to meet your requirements.