Export multiple SDLTM files to TMX + applying specific filter


I would like to export multiple SDLTM files to TMX files in one go, and apply at the same time a particular filter so that I get only specific translation units in the TMX files.

Did you come across a plug-in or any other solution?