Solution to the issue of not connecting properly was to write a script to guarantee that the database scripts had run, cdc had run, and the schema registry entries that the headless script relied on had been created.
2 Likes