I need to create a script for checking a security posture of a machine using OPSWAT MetaAccess. They have a built-in check, however, according to them, they aren't able to check since macOS 10.13+. This seems to coordinate with a change other people have discussed on other forums where the following commands don't work anymore. OPSWAT does support checks via custom shell script and so I'm figuring out how to write that now. The scripts that don't work anymore:
defaults read com.apple.screensaver idleTime
defaults -currentHost read com.apple.screensaver idleTime
defaults -currentHost read com.apple.screensaver askForPassword
defaults read com.apple.screensaver askForPassword