@saiskandadotin If your Mobile Device Manager(MDM) (say Swif or Jamf) or your endpoint detection and response (EDR) such as crowdstrike supports running osquery on your machines, you can use it through that.
What MDM/EDR do you have and I can try and find some equivalent docs,
For context, this was written for folks in a security team in a company large enough to have some sort of fleet level management - rather than individuals trying to check their own machines
Details for swif MDM - https://help.swif.ai/en/articles/14103730-run-commands-by-script-osquery-file-or-git-repo