Move imports in wscript inside functions to avoid breaking -h