Refactor command line EXE to take options including ES vs InMemory