Download ics file by script

Hello,

i have already seen your script and thats realy good work, my problem is that is have to download it from another server.
I have a nextcloud with the sql lite installation without managemnt (the standart) so i cant look at the tables at the db, ore is there a way to do so?

I have testet this command with no success:

wget --auth-no-challenge --no-clobber --http-user=USER --http-password=PASSWORT \ -O ./test.ics “http://IP-ADRESS/remote.php/dav/calendars/USER/CALENDAR_NAME?export