script to enable/disable HWPF