Pre-cook the pasta. Cut the ham into small cubes or small pieces, fry in a pan with the margarine. Cut the onion into small cubes, add and sauté. Add the pasta and let it brown on all sides.
Mix the eggs with the milk, spices and cheese. Pour the whole thing into the pan with the noodles and let set while stirring. Season to taste, possibly seasoning.