Get custom material parameters

Hi! I’m currently working a script to create a Material Payload for each selected texture which contains custom parameters which I want to access from my script.

Now I have the following setup:

This creates a new Payload Material for each selected texture but I have no idea how I would access the parameters (Second pic) to edit/assign stuff to?