Roughly grate the carrots, chop the onion and slice the mushrooms. Coarsely grate the cheese.
Fry the onions and carrots in a non-stick pan for about 3 minutes. Then add the mushrooms and fry for about 2 minutes. Fry the spaetzle briefly. Deglaze with the broth, mix everything together and season with salt and pepper.
Fold in the cheese and continue to cook until it has melted.