karjona/citrix-odata ? reverse-engineered prompt

Reverse engineered prompt

Build me a PowerShell module that pulls usage data from the Citrix Monitor Service OData API for a Citrix Virtual Apps and Desktops environment.

I want one main cmdlet that takes one or more Delivery Controllers, optional credentials, and a start and end date, then returns a clean custom object with the key stats for each Delivery Group, like maximum concurrent sessions, average login time, connection failures, and machine count. If no dates are provided, it should default to yesterday. If only a start date is given, it should cover a full 24 hour window.

Make it easy to install as a module and run from Windows PowerShell, with output that can be piped to JSON, XML, or plain text using normal PowerShell commands. Keep the usage simple and friendly, and include a couple of example calls and basic docs so someone can get started quickly. If you need to check the current Citrix API docs online, go ahead and do that.