This is more of a PowerShell question. The examples in the Logstash documentation assumes you're running the real curl. It looks like you're running some kind of PowerShell script with the same name that doesn't accept the same parameters.
In this particular case whatever it is you're running should default to GET so you should be able to drop the -X option.