In this case, the shed will have rain runoff into the house. Possibly not a problem, but generally not a good idea.
Also, as mentioned, sheds don’t usually need inspected. Sheds with power that act as extensions to the home should be (should = good idea) but might not be required, depending on location. Basically, some of these rules are to prevent uninspected/unpermitted extensions to the main dwelling.
I've heard it said that frugal home improvement is a very good reason to stay on very friendly terms with an electrician. You can frame and wire a new room in the basement, but not attach it to the mains, then have them come out and tell you if you did it right before anyone dies or burns the house down. You pay them for a couple hours instead of the whole project.
You could try chatting up your electrician on a simpler house call, or you might be able to chum around on a Habitat for Humanity project and get a hook-up.
Most people try to avoid electrical wiring or plumbing repairs (other than faucets), because the blast radius is so high. The bravest I've gotten is rewiring a light fixture, and I went extra slow to make sure I didn't end up flying off the ladder. I taped a cup over the light switches so nobody could help, and it still felt like when you're trying to fish something out of the garbage disposal and keeping one eye on the switch to make sure nobody even looks at it.
Also, as mentioned, sheds don’t usually need inspected. Sheds with power that act as extensions to the home should be (should = good idea) but might not be required, depending on location. Basically, some of these rules are to prevent uninspected/unpermitted extensions to the main dwelling.