Scripts in Confluence are an anti-pattern.
If you are going to take the time to document something out, then make an effort to take the time to script it out. Even better, add it to something like Jenkins or Rundeck. Maybe automate it.
This is true even if you have a list of steps in your documentation. Run step 1, then step 2, then check for this, and if it's true, do step 3, otherwise continue to step 4. You are literally writing the program in English.
Scripts in Confluence are an anti-pattern. It's not documented, it's lazy.