Can Motion Detector send signal to power plug?

I am installing outdoor lighting which could be controlled by one power plug. I’d like a motion detector to send a signal to the power cord and turn it on for 1-2 minutes and then it turns off. Is this possible?

Welcome to the forums! Are any of these items Wyze plugs or Wyze motion sensors? I am guessing so but you didn’t elaborate, so I wanted to make sure.

Yes! Through rules in the app.