If at least one target is still legal as Prismari Command tries to resolve, it will resolve and do as much as it can.

Artwork
Loading artwork…
Prismari Command
Secrets of Strixhaven Commander · #323 · EN
Nonfoil—Foil—
Card rules
Choose two —
• Prismari Command deals 2 damage to any target.
• Target player draws two cards, then discards two cards.
• Target player creates a Treasure token.
• Destroy target artifact.
Rare · Illustrated by Johannes Voss
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pioneer Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If all of Prismari Command's targets are illegal as it tries to resolve, it will do nothing.