I have spent many hours on this and am really struggling to resolve this script

I would like to rename the folder AND the file and then move it to the movie folder but I can only get it to rename the folder and then move the untouched filename with it
\\MEDIASERVER-PC\ServerFolders\Movie Pool/{n} ({y}){' CD'+pi}{'.'+lang}
am I far away from getting this to work?
Thanks for looking