In a skillet, melt butter over medium heat. Saute mushrooms, pepper and onions until tender. In a bowl, beat eggs until foamy; stir in ham. Pour over the vegetables. Let eggs set on the bottom, then lift the edges to allow any uncooked egg to flow underneath. Cover and cook until the eggs are set, about 3 minutes. Sprinkle with cheese and cut into wedges to serve.