Prevent macOS from sleeping. More information: https://keith.github.io/xcode-man-pages/caffeinate.8.html.
caffeinate -u -t {{3600}}
caffeinate -s "{{command}}"
caffeinate -w {{pid}}
Ctrl + C
to exit):caffeinate -i
Ctrl + C
to exit):caffeinate -m