You don’t use an e collar to punish a dog. You use it to mark behaviors. Imagine it as being able to tug on the leash with a remote.

You teach a dog the command, make sure they know it, and then use the e collar to re-enforce it.