import json
value = 'J590'
# Using `print` in place of `driver.execute_script` just for this example
print(f"document.getElementById('CustCd').value = {json.dumps(value)};")