Ping Fastest Server

I’ve noticed that when I connect between different NordVPN servers I get a massive variation in speed (VPN off = 20mbps, VPN on to UK server (I’m UK based - 5mbps - 11mbps).

At the moment, I’m going on the app to get it to automatically select the best server then going back to the GLI router and updating manually.

What I was wondering was if there was a way to automatically ping for the faster server and connect to it?

I also noticed this on GitHub but I’m not sure how to implement it (for NordVPN but presumably a similar premise applies with other providers) - GitHub - drbeco/vpnping: Ping nordvpn servers to find the best/fast for you