refactor shell commands into a separate script

Change-Id: I31454a600434a707f4960e65e2a1d859c27dd7ef
2 files changed