I have posted about this issue on the relevant github page, but I think the issue may not be specific to that project, so figured I would solicit some help here as well.
I am running the auanasgheps snapraid-aio-script in place of the built-in script to run a SnapRAID sync each night at midnight. One feature of the script is that it uses Apprise to send notifications when the job is triggered and a summary once the job has completed (how many new files added, how many removed, etc.). I created the scheduled task directly in the OMV interface and it runs as root (full settings below).
When I open the task and manually start it for the first time, the dependency pipx is installed, and I am asked to run the script again. Upon doing so, the script runs flawlessly: pipx installs Apprise, the sync and scrub commands run as configured, and I eventually receive the job completion notification. This is true every subsequent time I go into the OMV interface and trigger the job manually.
However, when I allow the job to be triggered at midnight, it attempts to download pipx again (which is already installed and can be verified with apt as seen below), and fails, causing the script to end prematurely.
Any suggestions on what is causing this issue?

GNU nano 7.2 /tmp/snapRAID.out SnapRAID Script Job started [Fri Oct 24 12:00:01 AM EDT 2025]
Running SnapRAID version none
SnapRAID AIO Script version 3.4
Using configuration file: /usr/sbin/snapraid/script-config.conf
Preprocessing
Apprise service notification is enabled.
usage: sudo -h | -K | -k | -V
usage: sudo -v [-ABkNnS] [-g group] [-h host] [-p prompt] [-u user]
usage: sudo -l [-ABkNnS] [-g group] [-h host] [-p prompt] [-U user] [-u user]
[command [arg ...]]
usage: sudo [-ABbEHkNnPS] [-r role] [-t type] [-C num] [-D directory] [-g
group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user]
[VAR=value] [-i | -s] [command [arg ...]]
usage: sudo -e [-ABkNnS] [-r role] [-t type] [-C num] [-D directory] [-g group]
[-h host] [-p prompt] [-R directory] [-T timeout] [-u user] file ...
pipx is not installed. Installing pipx...
Error: pipx installation failed.
user@server:~$ sudo apt list --installed pipx
Listing... Done
pipx/oldstable,now 1.1.0-1 all [installed]
Display More