Repeated operations

This is something which we are working towards in:

and you should be able to edit your G-code to allow the workflow you describe.