Q. My 8yrs old yorkies pops poo when she wakes from sleeping or jumps up not all the time but definitely after sleep
A. In that case I would like to examine your dog to find out if she had any problem on the bowels like hernia, constipation, megacolon that justify that behavior and likely to need an Xray to check her properly in the rectal area and spine (just in case the nerves can be trapped causing incontinence).
A. The best advise in that case is that need to be seen by a vet.