Script used to create another script

Hi guys .

I want to create a script for POST INSTALLATION for new machines being deployed in my Data Center.
I want to create a script post_install.sh that further creates a new script(s) that are essential for system connectivity e.g. mails etc to other systems.

How can I achieve this ?

Regards

I dont know how you expect your script to be intelligent enough to guess what to put in it ... And if you know you want in it what is stopping you to write the script and call the second from the first.
If because you are missing values that come from the first then it is just a question of passing them as argument to the second