Looping through selected cells to indent text
Interesting question,

there is clearly a lack in the Google Script API to indent cells..

Still, I find the CONCAT approach ugly, if one wants to indent 2 times, the formula will be:

=CONCAT(REPT( CHAR( 160 ), 5),"=CONCAT(REPT( CHAR( 160 ), 5),"'Hello World'")")


Which is ugly, I would simply pre-calculate the prefix and concatenate in the script and not let the formula do the work. This will also make un-indenting much easier.