(This is a follow-up to my comment on the accepted answermy comment on the accepted answer.)
Note that if $myparameter contains spaces, it will split on the server side. Bash's printf has a %q format that you could use. Example:
$ myparameter='hello; rm somefile' $ ssh user@server "echo $myparameter" hello rm: cannot remove `somefile': No such file or directory $ ssh user@server "echo $(printf '%q' "$myparameter")" hello; rm somefile