Well yeah, but you can install the wrong version using the script too.
Under the hood, the ACP plugin installer just runs an
npm i for the plugin you want, which installs the package in the node_modules folder.
Npm uses the package.json file to figure out what to install as dependencies for the NodeBB platform, which get installed in the same folder. So when you run
npm i in the NodeBB folder, it looks at the package.json file, and installs the dependencies. So, technically you can add whatever plugin you want as a dependency in the package.json folder (adding the appropriate version number that you know will work). At that point, you'd just have to go into the ACP and activate them.
The only caveat is you'd have to mind what's happening to that root package.json file when you're updating, to avoid conflicts / losing your settings.
Addressing the original question, you can specify a specific version you want to install by specifying the version of a package you want, i.e.