A User wants to fill a calendar via script. After setting the date using functio :SET_CALE, the calendar is not updated automatically. It is not recalculated.
This problem is explicitly referenced in the documentation:
No calendar calculation is triggered while this script statement is being processed. Open and store the Calendar object manually to have the calendar recalculated.
You have to manually trigger recalculation by opening and saving the calendar object.