Installing fab 40 using a script, is one of the most popular posts here. However, this installation guide covered wsp only and not stp. So here is the scripted installation guide for site template files.
Read More...
Read the complete post at http://alpesh.nakars.com/blog/scripted-installation-for-all-site-templates/