Orval gives you the possibility to import Orval.
It expose a function which takes a path to the Orval config as the argument.
import orval from 'orval';orval('./orval.config.js');
The Visual Studio Code Orval extension will look for the Orval config file in your opened workspace and run Orval.