Automatically combine files to PDF based on the filename
We have a document folder with a few million files, these files are all png images. Every image is named with a number underscore number . png like 123456.png or 654321.png / 654321_1.png / 654321_2.png / 654321_3.png. Now I want to somehow automatically create a pdf from all files with the same name, where _1 _2 etc should be combined. Is this possible in Acrobat Pro DC?
This a small example of these files:

In this case I would in the end result to have the following files:
P400_817060.pdf 1 page
P400_817063.pdf 6 pages
P400_817065.pdf 1 page
P400_817066.pdf 2 pages
etc etc
Is this somehow possible to automate with a script or something like that?
I'm not very familiair with the intricate details and possibilties in Acrobat Pro!
