Completes ex7 and creates a run script with all previous commands