Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
Currently, it is possible to achieve this with /ms targets all adjacent pokemon | targets all adjacent opponents but that is rather tedious. It would be very helpful to have a parameter for spread moves like /ms spread.