Telescope images are usually long exposures so that won't work. AFAIK there's no method of selectively dumping or damping the pixels only ass the Starlink satellites pass through the frame.
To do it you'd need a screen in front of the sensor that could occlude the pixels that the Starlink sats were passing over..