UPM executes commands by default in non-persistence mode.
Because the commands are executed in non-persistence mode they don't show in show configuration and will also not be saved when a config save is done.
To make the UPM commands persistent change the cli mode in the UPM profile with the below command added to the UPM script.
configure cli mode persistent
This is explained in the user guide, chapter Profile Configuration Guidelines/Supported Configuration Commands and Functions