Thanks for the clarification. Unfortunately I don't know anything about those programs. I would need to be provided some documentation for them in order to assist.
You must be extremely careful when using the command line since there are no safety nets. The commands you execute will do exactly what you tell them to do, although it may not be what you intended for them to do. The example commands you have provided in this thread all appear to be incorrect in some manner so I don't know what the exact command you used to fix ORCA since what you have posted here would not have done anything for ORCA. I think you have a few typographical errors in the commands you posted. And that is very dangerous when using & discussing the command line.
I'm assuming the "xattr" command was supposed to have a " -c " instead of an " -s "?
And the "echo" command maybe should have had an " >> " between "$PATH" and "orca421" perhaps in order to append the contents of the "$PATH" variable to the end of the "orca421" file which I'm assuming would be a configuration file?
There are several ways different apps & utilities may reference the $PATH variable. Plus certain apps may need to have the path variable modified. Whether you do this for the whole system/user or just for the individual app makes a difference as well. It is necessary to have some understanding of the apps/utilities you are using here and how they need to be provided with the $PATH variable since it seems you may be customizing the individual configuration files for them. Without the related documentation for these app/utilities you are trying to piece together, I'm not going to be able do much for you. At best, without any specific documentation, the easiest option would be to configure the $PATH variable for your shell to include all the relevant paths to each of these apps/utilities assuming those apps/utilities even reference the shell $PATH variable.
It would definitely help to know the exact contents of the $PATH variable configured for your current shell. You can use the following command:
echo $PATH
Also, what shell are you currently using as that may also play a role here (that last character is the number zero):
echo $0
Notice how I displayed the commands here? Whenever you post any command line commands or output of them, please use the "Code Insertion" tool whose icon on the forum editing toolbar looks like "</>". The Code Insertion tool used a fixed width font which makes it much easier to distinguish characters and spaces, and formatting of output. Note the zero has a backslash through it unlike the normal text of this window.
I highly recommend you review this tutorial on using the Terminal command line (there are six parts & relatively short):
https://scriptingosx.com/2017/07/first-steps-in-terminal/
Unfortunately most articles discussing the macOS command line are not very good, or they go into things that are not necessary or reference items/tools that are too difficult for a beginner. The linked Terminal primer is the best I could find that focuses on macOS. Most other articles out there are focused on Linux. While the very basic shell commands & utilities are very similar for both macOS & Linux, macOS uses an extremely old version of many of those commands & utilities so many of the Linux examples may not work on a Mac, plus many Linux tutorials will reference Linux specific items as well.
Before you do anything further with the command line, make sure you have a good backup first so if you accidentally mess things up, then you can restore from a backup. Trust me, you will make mistakes no matter how careful you are. If you are going to modify any file, then I highly recommend you make a copy of that file first since it can be difficult to remember what the original file contained (the "echo" command you used earlier I beliee was intended to modify a file). You should never use any commands that you do not understand. You may not fully understand a command, but you should at least have a good general idea what any command does that you are going to use (and the particular options you are giving it). If you review that Terminal primer I linked, then you will know how to use the "man" command to get more details on a particular command & its options/flags. Plus you can view the command history of the shell in order to provide the exact commands you used previously. Either using the Up arrow or the "history" command ("history" for the Bash shell, or "history 1" for Zsh ).
Hopefully another contributor will chime in here to assist and hopefully they may know something about the apps/utilities you are using.