You can just add wsl before the command you want to run, for example
wsl
wsl ln -sf /mnt/wslg/runtime-dir/wayland-* $XDG_RUNTIME_DIR/ wsl SDL_VIDEODRIVER="wayland" code .