Drafted script to measure process resources usage