Make sure that you are passing in the actual path to the .app to the command.
You can get the path by dragging & dropping the .app onto the terminal.
Executing the command successfully should fix the issue you are encountering.
It worked, thank you. I don't really know much about computers so probably would've never figured that out haha.