Reference for caffeinate, which keeps a Mac awake while a command runs or for a set time. Flags: -d display, -i idle sleep, -m disk, -s system on AC, -u user active, -t seconds, -w until a PID exits.
On Catalina, SilentKnight from Eclectic Light found problems with the Gatekeeper databases and updated them, which cleared the damaged-app message. Single-file workaround: sudo xattr -d com.apple.quarantine on the file. spctl --master-disable, LSQuarantine and replacing gkopaque.bundle did not help.
Thread from 2016 where the poster uses xattr -d -r com.apple.quarantine /Applications/APPNAME.app to strip the flag recursively. KALLT notes each download gets a unique quarantine flag, suggests right-click and Open instead, and says an app Gatekeeper reports as tampered with should be raised with its developer. Removing quarantine bypasses Gatekeeper's check, so only do it for software you trust.
Explains the different procedures for Intel notebooks with and without a T2 chip and why Intel key combinations do nothing on Apple silicon. On Apple silicon, shut down, disconnect peripherals, wait at least 30 seconds and restart. A full NVRAM reset needs a DFU restore, which wipes the SSD.
Reference for mdutil, the command-line way to check Spotlight indexing and force a rebuild. mdutil -s shows status, -i toggles indexing, and sudo mdutil -E / erases and rebuilds the index of the root volume.
User answer explaining that this error can appear when the file merely carries com.apple.quarantine. Gives a find command to locate copies of the app and a loop to print each one's xattr so you can see which is flagged. Not official Apple guidance.