Run multiple line remote command

How do I run a multiple remote command?

I'm quite clear your question, could you please say more about it? Thanks.