How does a “pop bottle” rocket use the principles of motion

stuff shoots out the rear, body moves forward

Conservation of momentum (Newton #1)

initial momentum before reaction = 0

so momentum of body/exhaust system remains zero forever

therefore if exhaust moves back
then
body must move forward
to keep the total momentum zero