While metadata is returned in the @metadata
section, that's not how you send it in. That's because you don't have control over every metadata value. For example, passing in an etag wouldn't make sense.
Instead, for the metadata values you can control, send them in the HTTP headers.
$headers = @{"Raven-Entity-Name"="Entries"}
Invoke-RestMethod -Headers $headers ...