is there a way to make a sql file and run each time you want say 5-10 items to go out of stock (qty 0)

or a possible module for this?