How to use the above files?
Step 1: Copy files updateInterfaceMetric.ps1, updateDns.ps1, autodns.sh to your Windows path %HOMEPATH%\WSL2\scripts, if not exists, create this folder.
Step 2: Win+R Run taskschd.msc will open "Task Schedulder" application, import two tasks with files UpdateInterfaceMetric.xml, updateDns.xml one by one.
This worked perfectly. Huge thanks for sharing it.
P.S. Mine is and worked just fine as "Ubuntu", with no version number.