Trying the runconfig snippet again:

[target]
VAR1 foo
VAR2 [system script #{rget VAR1}]