Adding some cornstarch makes the ice cream creamy and held together.
Here is the recipe I use for Wendy's frosty.
The recipe I have is years old and handwritten but I found the same recipe using the same ingredients online here:
https://www.food.com/recipe/magic-ch...copycat-246582