Correct way to script ZFS replication in TrueNAS Scale?

If you’re referring to the destination, then they should preferably not be mounted, let alone “used”, if they are to receive replications.

See flowchart #4 in this post.