I'm trying to create a batch file to install a bunch of programs silently. I know there are tools/other programming languages that would get this done very efficiently, but the point of the exercise is to learn DOS commands

Basically, if a have a folder (e.g. apps) which contains folders for each of the programs (e.g. app1, app2 etc) I want to run a .bat to open folder 'app1' (and any subsequent folders) until it finds a *.exe (e.g. setup exe, but i want it to only look for the .exe not the name) and then runs (installs) it silently. Once that is done I would like it to loop back to the next folder in line and repeat the process (i.e. goto app2) until everything has been installed.
I'm looking to create this as a .bat over other methods as I am trying to learn the basic commands

a basic outline of the program I am trying to create:
/
change directory to current path (so it can install programs from the folder it is in)
loop over x=1 to n (bsically the folders containing the installers numbered as 1 to n)
open folder x
IF exists *.exe THEN
run *.exe /silent (running as silent so the program can run without user input)
set x=x+1 (upon succesful completion of installation go to the next folder and repeat process)
goto open folder x
ELSE goto open folder x (basically to keep opening the first folder in each sub folder till it finds a .exe)
UNTIL x>n (command to stop the process when there are no more folders to go through)
pause (simply so the user can see that it's finished and press enter)
:EXIT
//
Any help/pointers in the right direction would be greatly appreciated, if it is even possible as it stands

cheers folks!
Matt