CozyRoc Script Task scripts
(a commercial developer of SSIS Tasks and Components) has a "Script Task Plus" component that permits you to save a script and re-use it in the same project, or in another project entirely. They have published
a few samples of using this component, under what appears to be an open-source license. The scripts published don't work "out of the box" in the standard SSIS Script Task - but they can show you what you need to do inside the standard Script
Task to accomplish the same things. Or, download and use CozyRoc's Script Task Plus to use them verbatim - but mind the licensing requirements...