https://github.com/rathena/rathena/blob/bb8c4a03c8d3d9559637ab537babdd0733ecc041/doc/script_commands.txt#L8376
*item_enchant(<client side LUA index>{,<char ID>});
Opens the enchant UI for the attached character or the player given by the <char ID> parameter.
If the player exceeds 70% weight the client will not open the enchant UI and will trigger an
error message instead.
This command requires packet version 2021-11-03 or newer.
It's a script command. You'd also have to make sure the all the necessary info/items are updated on your lua files.
https://github.com/llchrisll/ROenglishRE/blob/master/Renewal/data/luafiles514/lua files/Enchant/EnchantList.lub