Macro equivalent in config files for Custom Factory default

We have our Cnmaestro templates functioning as expected. We have recently gotten the custom Factory default config Custom Factory Default Configuration set up.

In our templates we set the default Wireless password to the Serial Number with the %{MSN} Macro.

The Cambium factory config pulls the last 6 of the ESN for the ESSID on each unit, so somewhere there is a macro/script process that is pulling that info.

If the config file route doesnt allow for a macro or script to pull the info, is there any way to have the factory default initiate a script that does so?

We can load the template that does this from CnMaestro if a customer resets their device, but we would prefer this be self service after we open up more the EZUI to customers.