This sounds very similar to the premise of the comedy science fiction film Where The Aliens Are:
What if aliens suddenly arrived in orbit and turned off all electronic devices on Earth? A retired professor and his neighbors take matters into their own hands with a bold plan: detonate a nuclear bomb and hurl heavy objects at the alien spaceship. Note: The story is based on the 1950s nuclear Project "Thunderwell."
The screenplay has won a few awards, including Best Comedy Feature Screenplay, American Filmatic Arts Awards (2021), and storyboard is available at the project's webpage, but I don't see any sign that thea film or TV episode actually has actually been made from it.