There’s actually a way to enable a JavaScript console in Keyboard Maestro. See this.
Sorry I misunderstood what you’re trying to do. I’m not clear at all about how the variables are set, what their function is and how they are modified. It almost looks like you want some sort of dashboard to monitor and control a parallel process. Which is, I agree, not what I was talking about.