What's the best way to run a wire from inside my garage to the outside?
The way you suggested will be fine.  On the exterior, make sure to leave a drip loop in the wire in order to prevent water from running down the cable.  Drill the hole high enough so that standing water next to the foundation won't leak into the hole.


(source: chicagopropertyinspection.com)