Requires each main module from packages in a base directory, invoking each exported function with optional parameter(s).