Write ActiveState Tcl Program for Windows that expects a password and enters it

  activestate, tcl, windows

I want to write a shell program in windows that runs another shell script and expects a password prompt from the Git bash terminal and inputs it.
This is what I have so far:

exec tclsh "$0" ${1+"[email protected]"}
package require Expect

spawn sampleScript.sh
expect "Password:"
send "pass123"

Source: Windows Questions