rsh connection using embedded command

Hello,

I am doing an rsh connection to server2.
I want to perform several command on server2.

I.E:
i=1
rsh server1 -l username "z=$i;`script.ksh`"

(1)Is this the right way to give z value to be used on server2?
(2) Is this the right way to run a script on server2?

Well, you say server 2 and go to 1, you need to export z if it is going to a called script, and backquotes produce a string value from stdout that, in this case, will be executed, which seems bizarre.