I had a similar issue when I started working in this way, because I was trying to compile it instead of saving.
Save the commands.pwn then compile the main.pwn and then try again.
I don't compile anything but the Main.pwn file, because that's what supposed to be compiled. Regardless, I did what you told me to and it still doesn't work: I'm given the 'unknown command' error.