Read the other comments here for some tips. Make sure you have named the file .cmd or .bat for it to run. Make sure you have no invalid characters like quote marks etc. The scripts run fine when copied and the paths changed for valid paths that contain the office binaries