ElasticSearch Query with Powershell Invoke-RestMethod

It won't. Elasticsearch supports POST for APIs that accept GET with a request body for languages that don't support GET with a request body.