Switch scripts to use bash …
This commit switches the command-line scripts to use bash instead of sh so that we can take advantage of features that bash provides like arrays. Relates elastic#18251