Hi @wang12180005 ,
Do you have only one script in your UCCX? if you have several scripts, maybe another script sends calls to this agent after 5 PM. Also it will be good if you share here the screenshot of your entire script, because at the moment it is hard to say how it behave (we see in your first post just a part of it)
I understand that you assigned this script in your Application and Trigger number. But does your Agent receive calls ONLY from this Application and Trigger?
As for the script - it seems to be ok, however, can you please show the properties of the Time of Day step?