There is not enough information to understand what you are asking.
Code in a function to sub must be called.
You should not be suing VBScript as it is obsolete and is scheduled to be removed from Windows. PowerShell is the current supported scripting system.
\_(ツ)_/