@riccardo-cereser, please try adding this to your script:
SCRIPTDIR=$(dirname "$0") cd $SCRIPTDIRThat way you can specify the full path to your script in the commands.json file, and when your script runs, it will cd to the directory where your script is.