Hello
I can help you to make a shell script that accepts the 4 arguments and finds the related files for you. I do have extensive experience with developing and deploying back end scripts over many years and similar to what you are looking to achieve in your project.
If you would like to send through some additional information on the project, including if you are looking to find files that were created within [x] days, modified within [x] days, or accessed within [x] days, as well, if you are just looking to output the relevant list or save it to a file. We can then confirm and I can complete the project for you.
Thank you
Darren