Invoke-PSUEndpoint is throwing an error when using query parameters

Product: PowerShell Universal
Version: 5.4.4

I am running into an error when using Invoke-PSUEndpoint with query parameters in the url. The request works fine when I use Invoke-RestMethod. I did not see a cmdlet parameter that will accept query parameters to try a different method. I’m not sure if this is a bug or if I am just using it incorrectly. Even if I manually put a string in place of the variables I run into the same issue. Does not appear to be due to url encoding either. Any suggestions?

(Invoke-PSUEndpoint -Url "/api/outlook/$EmailAddress/calendars/$CalendarID/events?startDateTime=$StartDateTime&endDateTime=$EndDateTime" | ConvertFrom-Json)
Status(StatusCode="Unknown", Detail="Exception was thrown by handler.", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1744719870.809000000","description":"Error received from peer ipv6:[::1]:50135","file":"..\..\..\src\core\lib\surface\call.cc","file_line":953,"grpc_message":"Exception was thrown by handler.","grpc_status":2}")
at <ScriptBlock>, <No file>: line 34
at <ScriptBlock>, <No file>: line 1