Comercial/open source hyrbrid redistribution of homebrew

I tried to find documentation on this but I am just curious if it is permitted to distribute a client bundled with homebrew binaries or a script that installs homebrew that works with a server program (commercial aspect) and if so what attributions and steps must be taken. If anyone has any input on this topic I would appreciate the discourse.

All parts of homebrew are under the BSD 2 license afaik. So all the rules there apply.