need script to connect sftp servers

Dear friends,

i need to connect sftp server from my home directory using script .
Please can anyone help me on this.

script is a basically collection of commands that you give it to a interpretor with some special routines and brilliant methods to make it easy to use.

how do you manually establish sftp connection to the server ?
that is the starting point, add that command to a script file and execute that