For pyloric stenosis, surgery usually offers a cure. The preferred operation is called pyloromyotomy. This procedure cuts the muscle at the stomach’s exit to make a bigger opening so food can move smoothly into the intestine. Doctors can do this through a tiny cut on the tummy or using a laparoscopic approach.