External Tools - command line installation

Is there a way to install plugins and external tools using just command line / scripting?
For instance, in order to install Sen2Cor:

  • One can use the standalone Sen2Cor (no integration with gpt but can be installed unsuperivsed using a script)
  • One can configure (using Snap GUI) Sen2Cor as an external tool (integrated with gpt but requires supervised installation)
  • One can directly install and configure Sen2Cor from the GUI (integrated with gpt but requires supervised installation)

I found this for installation of native nbm plugins and I will give it a try, but I was hoping also for an unsupervised way to install and configure external tools.

Thanks in advance.

I dont’t think so but, maybe @kraftek can have a look and clarify this?