Thank you for your feedback.
Implementing a custom process to automatically add unknown MAC addresses to your router's block list is a valid approach. However, passing the MAC address as a parameter to the "execute command on detection" feature would be quite complicated. This is because multiple unknown MAC addresses can be detected in a single scan. Executing multiple commands simultaneously with different MAC addresses might result in a large number of processes in the system and potential concurrency issues.
As an alternative, the list of unknown MAC addresses can be directly accessed from the WiFi Guard database. This database is a standard SQLite database, can be queried using various tools and scripts, and can be opened using any SQLite3 compatible tool. It is located in
%APPDATA%\SoftPerfect\WiFi Guard
If your goal is to automatically block new MAC addresses, you might consider reversing this concept by listing all known MAC addresses in your router's whitelist. Consequently, any MAC address not included in this list would be automatically blocked. This method could streamline the process and reduce the complexity associated with individual MAC address detection and blocking.