HPM: Update script.c

Further implemented the interface

Signed-off-by: shennetsind <ind@henn.et>