@msuchy please check if this is what you had in mind.
The script works properly. As improvement I would hardcode github URL with raw string which downloads the latest template.
Pull-Request has been merged by phracek