Update Powershell script
Add parameter es.index.refresh (boolean)
Add get document after each createVersion