You need to be running the script from the same machine where at least one of the server is running. like
<jboss-install>/bin/jboss-cli.sh --connect --file=scripts/teiid-domain-mode-install.cli
<jboss-install>/bin/jboss-cli.sh --connect 10.95.107.55 --file=scripts/teiid-domain-mode-install.cli
You can not use the above script using "deploy" command as it is not a deployment artifact, it is set of CLI commands. I do not believe there is any way to run the script from inside the shell. If the above does not work, then edit the CLI script and add the "connect 10.95.107.55" as the first line in the script.
Thank you Ramesh