We need the force of static friction to equal the weight of the cream pie.
Since static friction is proportional to normal force, we apply a normal force with the hand creating an acceleration.