I know this question is super old, but I thought I would respond for posterity.
The Post Create/Update Script and Pre Delete Script are scripts that BIG-IQ should run before or after an app admin creates an application using a template. Were you looking for examples of those or were you looking for how to create a template and then use it to deploy an application service?
I ask because you can achieve your goal with a Service Catalog Template or an AS3 template and no scripting is necessary.
These topics are covered in the techdocs manuals:
Create a template:
Deploy application with template:
Scripts can be run on their own or as noted earlier you can also tell BIG-IQ to run scripts before/after application service deployment: