You've got a JSON Schema with $ref pointers to other files and/or URLs. Maybe you know all the referenced files ahead of time. Maybe you don't. Maybe some are local ...
Before calling the Immich cmdlets a session needs to be created. Currently it is supported to use an API key or credentials (username and password) The session object can be passed to all cmdlets.