Yes for sure, or you could save your script in a single place and have it ask you what directory to analyze.
Names default to here(1);
// Get either the current directory or ask the user to pick a directory
DirectoryToSearch = Get Default Directory();
DirectoryToSearch = Pick Directory();
// Files in that directory
FileList = Files In Directory( DirectoryToSearch );
// Filter only for specific files
// First a function to determine if file should be included
IsFileToAnalyze = function({f}, contains(f, "Output") & (Right(f, 4) == "xlsx" ));
// Find files to analyze - filter each works in JMP 16 or newer
FilesListToAnalyze = filter each( {f}, FileList, IsFileToAnalyze(f) );