In a mixing bowl, whisk together flour, egg, yogurt, salt, and cayenne/black pepper. The batter should drip slowly off your whisk, resembling thick pancake batter. Add more flour if it's too thin, or a splash of milk/water if too thick.
Bring a pot of salted water to a low boil (medium-high heat). Using a slotted spoon, cheese grater, or spätzle maker, press spoonfuls of batter into the water. The spätzle is done when the noodles float to the surface (about 2–3 minutes). Remove with a slotted spoon and repeat until all the batter is used.
In a large pan, melt the butter over medium heat. Add the cheese to the butter and begin to whisk then add the cream and whisk until everything is incorporated. Add your spätzle noodles to the pan and gently toss to coat in the butter sauce. Salt to taste.