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.