Changing an enemy name for Visustella Bestiary

I have an enemy who is named as "???" during the fight against them. The characters learn the name during the fight, though, so it doesn't make sense for the name to remain as "???" in the bestiary. So, I was wondering if there was a way to change an enemy's name via scripts or anything, so that the name shows in the bestiary after the fight.

Or alternatively, is there a way to hide the monster's name during combat, but it still then shows up in the bestiary?
Make two versions of the enemy, one named ??? and one with the correct name.

Give the ??? copy the notetag to hide it in the bestiary.

In the event where the party learns the enemy's name, use the transform event command to replace it in the troop.

Original thread: https://forums.rpgmakerweb.com/threads/changing-an-enemy-name-for-visustella-bestiary.163501/