KeepingYouAwake is a macOS menu bar utility that keeps your Mac from going to sleep. Enable it for a set time or leave it enabled until you turn it off.