How to create extracts from name and insert in parameters?

Hello, everyone,
I created a new part in CatiaV5.
(Ex: 111_222_333____GEO_TM__001_____TEST__________________________20221129)
Now, for further processing in the PDM, I would like to use a script to extract the part number (111_222_333) and insert "part_number" as a parameter, the same with the change status (TM__001) and date (20221129). Do you have a solution?