Get var to use with executeCommandLine

Its a common desire, examples