Ok I see what you mean now, you dont mean sql server user defined function do you, you mean vb.net function right? if not can you clarify what kind of function you mean?
Any function you create there will be within a class right? so just make a new instance of that class provided it's declared as public to the whole package.
I would have a first step (outside of the data flow) that creates the class and then each script component creates an object of that class.