Caffeinate : prevent screensaver (Catalina)
Frame challenge…
Why not just use the Hot Corners in the Screen Saver prefs instead.

Push the cursor into the top left &amp; no more screen saver, which will also keep the Mac awake.