Google script not executing properly in for loop

Printable View