Took a while to troubleshoot why my shell script wasn’t running in Keyboard Maestro. Turns out I needed to add #!/bin/zsh -l to launch it with ZSH, with the -l switch to read my zprofile dot file.

Screenshot of a Keyboard Maestro "run shellscript" step with the hash-bang line set to /bin/zsh with the -l switch