Launching commands in separate windows using bash
This is what you're looking for:
#!/bin/bash
osascript -e 'tell application &quot;Terminal&quot;' -e 'do script &quot;/usr/local/bin/zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties&quot;' -e 'do script &quot;/usr/local/bin/kafka-server-start /usr/local/etc/kafka/server.properties&quot;' -e 'end tell'

It can also be done as:
#!/bin/bash
osascript &lt;&lt;-EOF 
tell application &quot;Terminal&quot;
    do script &quot;/usr/local/bin/zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties&quot;
    do script &quot;/usr/local/bin/kafka-server-start /usr/local/etc/kafka/server.properties&quot;
end tell
EOF

Or like so:
#!/usr/bin/osascript

tell application &quot;Terminal&quot;
    do script &quot;/usr/local/bin/zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties&quot;
    do script &quot;/usr/local/bin/kafka-server-start /usr/local/etc/kafka/server.properties&quot;
end tell