ssh login help

I would like to login to host and once logged into host would like to run script.
i.e "ssh hostname -l username /opt/share/scripts/vol"

Can someone please have this run as script ..

Many Thanks
-sam

ssh username@hostname scriptname

Above line will serve the purpose(ssh keys should be generated to login without prompting for password)