You haven’t set all the environment varaibles that are needed for the compiler to work.
If you are using the Intel oneApi toolkit, you should find a .bat file, that will set up everything for you. You should find it here:
C:\Program Files (x86)\Intel\oneAPI\setvars.bat
So run it in the terminal, then you should be able to find the ifort command (the ifx compiler should be available for you now too)