Create generate-td-agent.sh