CD is a command used by your shell command interpreter (CMD.EXE).
You cannot pass a CD \\server\share
command to CMD.EXE.
Instead I suggest to map your share name to a drive letter like (from the command prompt)
NET USE Z: \\server\share /PERSISTENT:YES
Now you could write a batch file that uses your Z: drive and executes the commands required
For example
CD Z:\projectfolder\bin\release
copy *.exe z:\projectfolder\distribution /Y
You could also pass the predefined macros to this batch file as arguments and use them inside the batch file.