Hey, would you share the new script?
I am also looking for this, and if you already have, no need for me to create the same.

BTW, do you know if it is possible to specify which ports are open via...