Switch Button that stays on while automation runs

I am looking to create an automation that will run a Fan for 15 minutes, and I would like the switch button to have it’s state switched to “on” while the fan is running. Once those 15 minutes pass, the button should switch back to off.

Is there a component that would allow for this to happen?