This crap took me forever to figure out because I don't know much about the cmd nor spcomp but hopefully this will help you. I am switching to using Notepad++ because PawnStudio seems too outdated with the new syntax change.
First you need to install NppExec
It can be downloaded in this window, you just gotta look for it.
Press F6 after it's installed and you've restarted Notepad++, then this window should show up.
Place this into the textbox, save the script, and now it should work to compile by hitting F6 every time you want to compile, and then OK. Ctrl + F6 will always execute the last script you did. So that is even faster.
Code:
NPP_SAVE
cd $(CURRENT_DIRECTORY)
spcomp $(FULL_CURRENT_PATH)
cmd /c move "$(CURRENT_DIRECTORY)\$(NAME_PART).smx" "$(CURRENT_DIRECTORY)\..\plugins\$(NAME_PART).smx"
__________________