create bash script to access nats service