If you're moving repetitive things into this block of lets, seems like you might want to do the same with the WMI query, `
"SELECT * FROM Win32_NetworkAdapter WHERE Index = #{index} AND IPEnabled = TRUE`