This seems more the job for a .NET application.
An example:
File Content and Directory Search using Directory.GetFiles and PLINQ
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP