Add the following as a scheduled task:
$wslInterface = (Get-NetAdapter | Where-Object Name -like "*(WSL)*" | Where-Object Status -like "Up" | Get-NetIPAddress -AddressFamily IPv4)
$wslIP = (wsl hostname -I)
$wslIF = $wslInterface.InterfaceIndex
Invoke-Expression "route add $wslIP mask 255.255.255.255 $wslIP metric 256 if $wslIF"
Triggered on Log Microsoft-Windows-NetworkProfile/Operational
Source NetworkProfile
EventID 10000
with administrator privileges.