How to add external js bundle in angular module

I have hello.js file with a function HelloWorld()

Angular app has lazy loaded modules module1, module2, .. moduleN

in Angular.json

 "scripts": [
              {
                "input": "src/alljs/hello.js",
                "inject": false,
                "bundleName": "lazyhello"
              },

This generates a bundle lazyhello.js in the root dir

I want to call function helloWorld() in module2 and module 3. So in module2.module.ts and module3.module2.ts I import it as –

import “../lazyhello.js”

However, it does not work. How can I import bundle lazyhello.js into the other lazy loaded angular modules?