Variables in Movement Routes

Hello, I would like to know if there is any way to use the Script feature in movement routes to add 1 to a variable. Thanks!
Script: $gameVariables.setValue(x, $gameVariables.value(x) + 1)

where x is the variable id, without leading zeros.
Script: $gameVariables.setValue(x, $gameVariables.value(x) + 1)

where x is the variable id, without leading zeros.
Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/variables-in-movement-routes.123196/