In a skillet, add butter and melt over low heat. Add the diced onions and garlic and saute until onions are translucent and not browned. Add the ham and cream . Simmer until slightly thickened. Stir in the Parmesan and peas. Add the cooked pasta to the skillet and toss. Cook the mixture tossing for a couple of minutes and serve immediately.