Hello @NM1
Firstly, you said “We are on Confluence v8.5.8” which means you are using Confluence SERVER or Confluence DATA CENTER, not Confluence CLOUD. There is no Confluence product called ‘Enterprise Cloud’.
Next, if you really did ‘build’ these macros yourself, a picture of some errors on a screen is not very useful. You’ll need to provide an in-depth description of how you built them and with what, as well as all the error logs. On this topic, refer to the How to ask a good question thread.