...
Instead of loading modules automatically I suggest to create aliases. For example, if you frequently want to read RPN files with Python3 you could create the following alias in the above file:
alias py3='module load python3/miniforge3; module load python3/python-rpn; module load python3/outils-divers; source activate base_plus'
Then all you have to do if you want to use Python is to execute the "command" (alias): py3