You'll need to get a prescription, from a vet, which will cost you an "office visit." The pills themselves, will cost $6-8 each. One "large dog" sized pill will treat 380 gallons.
Yes, it will likely kill all of your shrimp, though your pistol shrimp may survive. I've had mixed results with...