On my.homey.app, create a new script using the </>
button in the sidebar:
Then you can use it with the “Run script” or “Run script with argument” cards in an advanced flow.
I have no idea what global.get()/global.set()
have to do with this, but it sounds like you’re misunderstanding their purpose (they can’t be used to get/set Homey variables).