Script Relevance and Applicable Device Count
It would be nice if we could create relevance for scripts, similar to how Intune has detection scripts that determine if a device needs to run a specific script (other tools have this ability as well).
This avoids us having to run a script on all devices and review the output to determine if a change was needed/made.
If the script had functionality for relevance/detection, we could quickly look at the script and see how many applicable machines need it and push it to those devices accordingly (no detection added would be applicable to all).
This is helpful in many ways, including when trying to prove that a certain mitigation is in place (via registry, a file existing, file version, or anything else we need to check/remediate). Giving the detection script as evidence and showing no applicable devices would also help during audits and security reviews.
I know detection can be written in the script itself... Again though, it's not feasible to review the output for all devices to see what few systems may have needed it ran to begin with and try to report on that.