I want to run a custom PHP script in Magento 2 webshop using a custom module.
But I want it to run only when installing or during installation of my custom module.
To be specific, during setup:upgrade command
and will trigger only once except if there's a change in my custom module version.
Anyone tried that before?
Can you point me into right direction on how to do it?
Thanks!