Include the commit record in your script as the first step after the pause. Then continuing the script will also commit the record.
Ok but how will the script resume.
I tried this but I still have to click out of a field and press the enter key for the script to resume.
You could simply press the enter key twice (once to exit, once to continue the script) if you've used field | control | behavior to enable the enter key to exit the field.
Or you could break your script into two parts. Part one takes you to the pause point in your current script and uses go to field to place the cursor in the field. Part two is whatever takes place after the pause. Set up a script trigger to perform this second part when the field is exited.