Egg-Moves

Is there a way to obtain egg-moves prehatching in some way like getting a pokemon shiny with pokepon or changing the ability or something? Cause i just cought a shiny Cottonee, but it (more or less obviously) doesn’t have Encore

No, you can’t get Egg Moves on something that doesn’t already have it (unless they’re obtainable another way).