'Binaries security check macos [duplicate]

I have a folder with binaries on macos added to PATH. I get "binary-name cannot be opened developer can't be verified" when trying to execute them.

I know I can manually verify each binary in system settings, but I have dozens of them. Is there any way how to verify all of them at once or exclude folder from developer check.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source