We need a cross platform replacement for the post.sh.
The attached code is a direct replacement of the post.sh since it is actually doing the same exact thing.
In the future one can extend the CLI with other feature like auto commit, etc..
Right now the code assumes that
SOLR-85 is applied since we using the servlet of this issue to actually do the update.