No need to use a shock collar – just a leash, a pocket with treats and an open door.
Put the dog on the leash. Approach the door, but instead of lettingl the dog run through it, put the dog in a sit-stay at your side. Then YOU walk through the door first, and then the dog follows and gets a treat for going out. This will establish you as the leader.