Change title to part of filename

I have a video file, lets call it “MyVideo {2001} [S].mkv”

I have a batchfile to go through all the mkvs and set the title to the filename which works fine, however I just want the title to be “MyVideo”.

Does anyone know if its possible to do and if so, how to batch script it?

Thank you.