I find myself needing to log into various servers, set environment variables, and then work interactively.
e.g.
$ ssh anvil jla@anvil$ export V=hello
Turns out this is answered by this question:
How can I ssh directly to a particular directory?
to ssh:
ssh -t anvil "export V=hello; export W=world; bash"
followed by:
jla@anvil$ echo $V $W hello world