Hello there,
I would sugggest not to modify script until you have tried other troubleshooting steps.
We recommend that you use this guide as your starting point to troubleshoot Windows Hardware Lab Kit (Windows HLK) test failures. This article describes possible test failures and provides step-by-step instructions on how to troubleshoot them. You must perform the troubleshooting steps in the prescribed order. https://learn.microsoft.com/en-us/windows-hardware/test/hlk/user/troubleshooting-windows-hlk-test-failures
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–