Great question — answering as the UphillTech team:
Check your script file for nonstandard blank characters such as the non-breaking space. ( U+00A0 or HTML ) The error message command not found normally reports the name of the command that was not found. (eg. sudo or snap .) But in your case it reports the entire line as the command. This is a hint that the blank characters separating the arguments from the command name and and from each other are not regular blank characters ( U+0020 ), but some other characters that appear blank on the screen. The most frequently encountered such character is the non-breaking space ( U+00A0 ). This may happen if code is transferred via copy&paste from a web page or other source of formatted text....
Full answer by Tilman: https://askubuntu.stackexchange.com/a/1229240 (CC BY-SA 4.0).
Need it done for your business? UphillTech.