How to make absent in HRMS by using custom script or code

how to make absent in HRMS by using custom script or code .