At the opposite end, drill into the detached structure, enclose the exposed cable section in conduit, and connect it to the sub-panel. After verifying that all connections are secure, place warning tape above the UF-B cable in the trench, then backfill the trench.