I'd like to force my account to log out at a specific time as a self-restraint measure (e.g., to ensure I go to bed on time). And for the script to run whenever I try logging in after that time between two specified times (e.g., 11pm-5am). Potentially tied to internet time so it cannot be avoided through simply changing the time. Perhaps making use of:
sudo pkill -KILL -u <username>