Quit projector after a time

Hi, I’ve been trying to get a projector to quit after a certain amount of time. I want the projector to end after 5 seconds, so I’ve been attatching

fscommand(“quit”);

to the 60th frame (12fps), is this possible?