Schedule a PDM job to run automatically on the vault files

Hello, I'm looking to run an already existing task, on a number of .sldprt or .sldasm files on our vault, without having to do it manually. There are about 50000 files affected.
I have a SW2022 Premium License with PDM pro 2022.
The task in question generates a JPEG file in the vault as well as another JPEG file to integrate it into our ERP.
Is there a way using a PDMTools tool to do this type of maneuver?

And is it possible to filter 3D files via attribute values present on these 3D files?

Thank you for your help.
Jérémy

Hello

For the part " And is it possible to filter 3D files via attribute values present on these 3D files?" If the attributes are linked to a data map, normally there is no problem via the " full search" tool of PDM
image

For the basic question, you can always try to run a search . on the vault, select all the files and run the task: very very very long at each step but could work (low probability though). The best thing to do is to do this directory by directory (but it's tedious).

There's also a task scheduler in Solidworks. with the tasks ' Run a custom task' and ' Export files '.
If your EPDM task is just to generate an image without too much frills, that should be enough.
image