Introduce elasticsearch.in.bat (i.e. es.in for Windows)

Break-out common functionality between elasticsearch.bat and service.bat
Relates #8237
@gmarz Thanks. Fixed it through `%ES_HOME%\bin` (it's what we use through-out the script).