Why my script is stopped in 18PM?

Hi. My scripts is stopped every day in 18PM, why? I think so this connected with reset CPU. I had tried is created task on 18:01PM, but my script is stopped across two or three hours. How your solve this problem?

Is this a script running in the console or something running in a scheduled task?

No. My script will run in the console. But in 18PM script ceases worked without errorlog in console

Our console servers to periodically get restarted. I would recommend setting up a long running task from the scheduled task tab instead for your usecase.