Command versioning has been an issue since Action Recorder was added with AutoCAD 2009
https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Command-macro-does-not-work-the-same-as-it-did-in-AutoCAD-2008-and-previous-versions.html
Command Versioning in AutoCAD https://withoutanet.typepad.com/without_a_net/2009/12/command-versioning-in-autocad.html
See also: About Special Control Characters in Command Macros
https://help.autodesk.com/view/ACD/2024/ENU/?guid=GUID-DDDB6E26-75E1-4643-8C6A-BEAEBA83A424