Moonlit Scavengers's ability won't trigger at all if you don't control an artifact or enchantment immediately after it enters the battlefield. If you don't control an artifact or enchantment as the ability resolves, the ability has no effect. These don't have the be the same artifact or enchantment at both times, however.

Artwork
Loading artwork…
Moonlit Scavengers
Throne of Eldraine · #57 · EN
Nonfoil—Foil—
Card rules
When this creature enters, if you control an artifact or enchantment, return target creature an opponent controls to its owner's hand.
4/5
They comb the shallows of Lochmere for relics of a bygone era. And if they happen upon a lone traveler, all the better.
Common · Illustrated by Miranda Meeks
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
You still control Auras that you put onto the battlefield attached to a permanent you don't control.
Moonlit Scavengers's ability doesn't return multiple creatures if you control multiple artifacts and/or enchantments.