Trying to setup a TALKED server for recording videos, fails setup CLI

Hello,

While setting up a NC test environment, I was asked to setup Talked plugin for our talk server.

I’m trying to run the CLI which says :

occ talk:command:add recording Talked "php /var/www/html/occ talked:record {ROOM} {ARGUMENTS}" 2 2

Now I’m installing everything on a SNAP install on a Ubuntu 22.04 server (latest version for everything).

occ doesn’t exist, so I replaced it with nextcloud.occ, but when I try and run that I always get “the script is invalid”.

The exact command i’m running is:
"sudo nextcloud.occ talk:command:add recording Talked "php /snap/bin/nextcloud.occ talked:record {ROOM} {ARGUMENTS}" 2 2

Any suggestions?