How to set timer

Convert from Vera,
How do I set a plugin to turn on for a set amount of minutes when turned on by pressing the button or by command ?
Thanks in advance.

There are a few ways to do it, but I would use a Rule Machine triggered rule.

This is one I use for my laundry room vent, but would work with any on/off device really.