Custom Metadata

I am trying to set up an acquisition macro which allows me to collect a series of images with varying exposures. The macro works ok, but what I would like to add to it is the possibility to add a “custom” field in the metadata with the current exposure, which at the moment doesn’t seem to be happening. Is there any way to do this?

Thanks in advance for the help!