Can Homebrew be used to install AppleScript bundles?
This should be possible to call Apple Script like this one for example since it is a command line tool: https://github.com/dronir/SpotifyControl/

After that I don't know if Apple Script are accepted on homebrew maintainer.