Scripting docker commands

I use Docker Toolbox 1.10.3 with Windows 7. I am trying to write a deploy.sh file which automates my build/push steps.
My deploy.sh looks like this:

#!/C/Program Files/Docker Toolbox/start.sh

# Futher docker commands  

Unfortunately, this creates the following error:

An error occurred trying to connect: Post http://127.0.0.1:2375/v1.22/build?buildargs={}&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&memory=0&memswap=0&rm=1&shmsize=0&t=“my-repository”%3Adb&ulimits=null: dial tcp 127.0.0.1:2375: connectex: Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte.

I dont get this error when I start start.sh and then enter the docker commands manually.

I have no experience with shell files and thus have a very hard time unterstanding the content of start.sh. I would be grateful about any help.