I tried to archive the same thing, and the solution for me was only to create a folder with empty projects, to find all the places where you need to rename the project name (and package ID) and run your script, just copy this folder and rename project name and package identifier. Dirty but light.
source
share