Please check this wiki explaining how to Run MAC OS Script Procedure
https://wiki.itarian.com/frontend/web/topic/how-to-configure-and-run-procedures-on-managed-devices#create_mac_script_procedure
Note : This script file run only on mac laptops and returns mac battery status.