i tried the example in the release mode on macos and it didn't recognise the command brew, I tried running brew --version in debug mode it works.