Me again,Just for your interest, after a few tests I realized that Minted v3.x do not require the '-shell-escape' option anymore.
See: https://github.com/gpoore/minted/releases/tag/latex%2Fv3.0.0 So, the command to build the file can even simply be: #> pdflatex sample.tex