Abaqus - Automise job excution

If I am having a restart output request. when the maximum temperature at all nodes of the element is reached to some level, element id is identified and I am stopping the analysis at this increment using URDFIL subroutine. Now I want to remove the identified element, reselect the loading surface and rerun the analysis. this is happing many times so I want to automate the process using for loop or python scripting. Plz tell me, how should I do it?

Abaqus ​​​​​​​