access db2 from shell script

How to connect to db2 through shell script using cygwin?