Hi Swati,
You can find "setBinLinkPumpStatus" function within the "OpenWaterAnalytics/EPANET-Matlab-Toolkit" on MATLAB Central File Exchange. This toolkit is a MATLAB class designed for EPANET water distribution simulation libraries.
To locate the function, you can navigate to the "epanet" class within the functions tab, where you will find the function definition for "setBinLinkPumpStatus". You can access the toolkit from below provided link:-