Soffice - Access denied

I am running MacOS 13.2.1 (22D68) and trying to convert files using the terminal and the “soffice” command. However, when I attempt to perform any action on these files with “soffice” from the terminal, it does not work and an error message states that access is denied. Despite this, I can still open the files with LibreOffice. Once I open the document with LibreOffice, the command I run on this file works correctly.