Was the rear wheel off the bike and the tire/tube/rim strip removed, was it a disc hub,was the wheel fairly true before the spoke broke, etc.?
Would you have had the correct length spoke, the appropriate spoke wrench, a truing stand, a dishing tool, etc., and the experience to do the job in two hours?
You owe the shop a six pack of good beer and a "thanks"!