Sounds like you need to add espanso to the $ENV:Path variable (Win) or Path (if you are on Linux or MacOS). This may help:
Windows
How to Add to Windows PATH Environment Variable (helpdeskgeek.com)
MacOS
How to Set the PATH Variable in macOS (techpp.com)
Linux (Ubuntu)
How to Add a Directory to Your $PATH in Linux (howtogeek.com)
Hope this helps!