Using a command to attach boats to the boat trailer

I don’t know if this is possible, but it would be cool if you could use a command similar to how the /tow resources attach vehicles to a tow truck to attach a boat to a boat trailer.