Preheat oven to 325ºF. Lightly spray a 9x13-inch baking dish with cooking spray.
In a large bowl, beat together cream cheese, ricotta, milk, garlic powder, and onion powder.
Add cooked rice, spinach, artichoke hearts, 1-½ cups shredded mozzarella cheese, and 1 cup shredded parmesan cheese. Mix well.
Spoon rice mixture into baking dish. Top with remaining mozzarella and parmesan cheese.
Bake uncovered for 40 to 45 minutes.
