Can I run electric to a shed through my garage?
There is no problem with running the feeder from the garage's subpanel to the shed.

The only thing you have to watch out for is the remaining capacity of the garage's panel.

The heaviest load in the shed is going to be climate control if you choose to install one. All the rest you'd need for remote work can be powered of a single 15A circuit.