https://www.intel.com/content/www/us/en/developer/articles/technical/using-environment-modules-with-the-intel-development-tools.html
Creating a module file for any Intel Development Tool:
First you place a special comment at the beginning of the file so that module will recognize it as a module file with following command:
echo "#%Module" > my_module_file
then you will need to use the env2 command like below, for example:
perl env2 -from bash -to modulecmd "[install-dir]/parallel_studio_xe_201m.0.nnn/psxevars.sh <intel64|ia-32>" >> my_module_file
This will create a module file that has all the correct information need to run the compiler and tools correctly.
Now following the 'module' instructions to use the compiler tools through module file.
https://master.dl.sourceforge.net/project/env2/env2?viasf=1