simulink m function BBXM

when I try to use simulink for making a program using m function it shows me an error regardless whats inside the function the error as following: ‘fun1_sfun.bat’ is not recognized as an internal or external command, operable program or batch file.