TL there's a caffeinate(1) command built right into #macOS, so you might not even need a third-party tool like Amphetamine.app to prevent sleep. https://ss64.com/mac/caffeinate.html