There are lot of home automation gadgets that will do this, with a general relay signal, often both input and output, and often with wifi and alexa support.
Ideally, your gadget will time down, on it´s own, trigger a relay driving the light, and optionally after a delay that you set send alexa messages to any automation stuff you want to have.
And with the input line, alexa can know to count down and alert You, in endless ways, if the timer has not triggered for whatever reason, in a reasonable time period.
This can/will alert you if the bar is likely reaching it´s end --
and alert you even more if it really really should have triggered by now.
It´s an excellent reason to have wired input, wifi, and alexa support - all of them.
If for whatever reason your device failed, or the light bar failed, or the sensor, or the machine is jammed, YOU will still be alerted via alexa in reasonable time, by either email, or alexa hubs, or whatever other device you hook up.
The generic devices, like programmable led lights, tend to cost 50$ or so for a good one.
Good generic brands are tuya, and stuff that supports "smart life" the app. This is most of them.
You don´t ever need to use a smartphone for anything related - I mostly don´t - but it´s really easy and simple to program the devices with the phone / pc - I only use PCs for real work.
My workshop lights get turned on/off by voice commands, and my security/deco wall property lights get turned on/off automatically by alexa at 7 and 5 am, and turn on if rain or a storm is coming.
This is more useful than You might think.
When carrying anything, sometimes delicate or heavy, I can always get lots of lights in the shop by calling for lights.
And dim the lounge lights so watching TV is better, without getting off the sofa/chair.
The house walls are always automatically lighted, greatly deterring potential issues, and making obvious people are living and working there - even if we are away.
Note !
I very clearly said "the relay counts down" ! not alexa.
Do NOT rely on alexa or any internet service as the *primary* mechanism.
Use the endless smart gadgets for fantastic layered backup with very high availability and endless easy programming for free.
And great cheap flexibility.
The primary switch should be hard wired, a timed relay, or security lights sensor (with wifi is good), or something similar.
Anything cheap wired is going to be 50x less reliable than the mass-produced stuff with wifi and alexa.
Yes, it will.
A really good wired connection with a reliable or even redundant relay, and both positive and negative wires and sensors will cost 1000$++ in parts alone.
But a cheap relay that ALSO triggers a secondary redundant separate timer via alexa and the net and does not depend on anything in your shop is nice to have.
For cheap.
I used to make and live off very very very reliable IT / electrical / automation / programming stuff.
xx years ago.
It´s vastly harder than one thinks, and everything is much worse than people think (unless they ran a critical-services 24x7 operator).
If you want help, I´ll advise - but you mostly wont need any.
My 0.03€.
It´s 50% more but worth every penny.