Like the official nvm command, add a nvm exec subcommand which allows you to execute something one-off with a different version. For example, nvm exec 16 node index.js. There's also a nvm run command which works like exec except you don't need to specify node (exec can also be used with npm, npx, etc)