Thanks for your reply @Voona Rohila. Updated the script as suggested, but it doesnt seem to updated the hardware record