The [123] can change because journald attributes each line to the process that wrote it. Rather than fighting that, tag the whole run with something unique.
Simplest: unique identifier per run
systemd-cat -t "foo-$$" thescript
Then journalctl -t foo-<pid> gives you one run. You can match all of them with journalctl -o short | grep 'foo-', but filtering by a fixed field is cleaner (see below).
Better: run it as a transient unit
systemd-run --unit="foo-$(date +%s)" --collect --pipe --wait thescript
Every child process lands in the same cgroup, so every line gets the same _SYSTEMD_UNIT and _SYSTEMD_INVOCATION_ID, regardless of which process wrote it. Then:
journalctl -u 'foo-*'
journalctl _SYSTEMD_INVOCATION_ID=<id>
Add your own field
If you want a custom field to filter on, LogExtraFields= attaches it to everything the unit logs:
systemd-run --unit="foo-$$" -p LogExtraFields=RUN_ID=$$ --collect --pipe --wait thescript
journalctl RUN_ID=12345
Add --user if you're not root and want a user-level unit. systemd-cat itself can't add extra fields, but systemd-run does everything it does here and more.
Does that make sense?