Inline script with multiple statements?

Can you have an inline script with multiple statements? I'm guessing I can just append a semicolon after each statement. I'm attempting to do this in a reindex call.

Looks like that works. Digging the reindexing.