Seems simple enough, but it took a couple sessions for me to figure out the magical combination.
The context is that at work we have multiple sandboxes. There are personal ones and then a development and staging sandbox everyone pushes to. I wanted to run this simple Alfred workflow I use which pulls from my ssh config file and be able to plop down into the sandbox I wanted.
RemoteCommand cd ../path/to/other/sandbox; bash --login