What state do you live in?
Does the inspector merely observe the check engine light for proper function?
Or does he plug his tool into your car's 16pin diagnostic connector?
If the latter, your current fault code will be detected, and all that tampering with the instrument cluster, and how the check engine light gets its power, would be a waste of time.
In that case, your best solution is to actually fix the problem, assuming you can locate the parts.
To be clear, I recommend AGAINST tampering with the check engine light, anyways, regardless of where you live. It is deception, and it meets the definition of tampering