The script generates the required .avsc files without requiring a direct connection to the database. This makes it easier to generate schemas in more secure installations where direct access and installing dependencies might not be easy.