Here is a quick way to fix a broken PVC pipe if your’e dealing with a non-pressurized drain, e.g. a rain gutter drain or a garden drain.
DEWALT 20V Max XR Oscillating Multi-Tool, Variable Speed, Tool Only (DCS356B)
Armour Line RP77171 Internal Plastic Pipe Cutter, 1-1/4 in Or Larger Diameter
For a sewer, or more seriously damaged pipe, check this out! “how-to-tie-into-existing-drain-line”.