So, I messed up. I was opening a text file with no visible extension and macOS defaulted to opening it as an executable. I changed it to open with textedit then did the "Open with:"/"Change All..." via the info menu.
Now, I'm trying to open a program through terminal and it's opening that program through textedit. How do I change it back to opening all non-extension files as exe files?