You will need the Linux Shell for this.
You also will need to know how to use the CD command to change directories and the ./ option to execute the script.
Also, it will help to know how to list files in a directory.
https://www.javatpoint.com/steps-to-write-and-execute-a-shell-script