log into windows from unix using ssh

Hi,
I want to log into windows from unix using ssh through a script to execute some commands.We have cygwin installed on windows.We have expect library installed on unix(sun solaris).What would be codes for logging into widows from a shell script.

Regards,
Megh

ssh username@servername command_to_run