smbmount //$hostname/$sharename /mnt/netdrive -o username=$username

Just change this command so that $hostname is the host you want to connect to, $sharename is the name of the share, and $username is the name of a user who can access the share.

To avoid confusion and permission problems I make a user called knoppix on the windows computer and set $username as knoppix when running the script.

You'll then be prompted for $username's password, and the share will be mounted to /mnt/netdrive.