How to Disable Sleep and Suspend in BASH

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target