Script was created for Debian bookworm (amd64, default). First, create the new truenas instance. Stop the truenas instance and jailmaker instance then run.
Run: chmod +x jlmkr-to-Instances.sh ./jlmkr-to-Instances.sh
Note: Seems to be working with docker in the container as well.