Determine the location of a shared folder in Win7
In Finder the navigate so that the Win7 folder is the selected one. Then the folder name is in the title of the window and this is the path yo use in your script. 

Note you can also use automator and applescript rather than shell scripts.