Batch edit file names

I’m wondering if there is any functionality to automatically edit file names. Specifically, I’m hoping to batch edit file names using metadata fields in my yaml headers.

Is there a plugin for this? Or can anyone please recommend another tool or script that could read the textfiles and update the titles accordingly?

As an aside, it would be really great if templates could be applied in file names in the future!