Reads the version numbers from the Malware Removal Tool (MRT) and built-in antivirus (XProtect) plists
To learn more about queries, check this guide
SELECT path, value AS version FROM plist WHERE (key = 'CFBundleShortVersionString' AND path = '/Library/Apple/System/Library/CoreServices/MRT.app/Contents/Info.plist') OR (key = 'CFBundleShortVersionString' AND path = '/Library/Apple/System/Library/CoreServices/XProtect.bundle/Contents/Info.plist');
PowerShell commands are currently work in progress, contributions welcome.