Third party modules for scriptable

I want to integrate the functionalities of “image to text” (or OCR ) in my shortcut. I saw that there is an import module command in scriptable, so I thought whether integrating open CV in it might be possible.
If not possible, pls suggest any other way to do it.
(PS. Java script novice)

I’m using Microsoft Cognitive Services with Scriptable for OCR.

Have a look at my repo.