Rename .app and using the new name with open -a I want to change the name of Visual Studio Code to vscode for using the command open -a vscode. Any idea how?
You can make a symbolic link:
cd /Applications
ln -s Visual\ Studio\ Code.app vscode

You can then open it with:
open -a /Applications/vscode