Melt butter in a large skillet over medium high heat. Add in the onion and garlic, and sauté for about 2 minutes. Add in the broccoli, and cook for another 2-3 minutes, or until broccoli is tender. Season with a bit of salt and pepper. Pour into prepared pie pan. Top with the shredded cheese.