Completed both scripts, the first one (dynamic) takes over a running connection that goes through the router after once up in connections the external client has to be hindered to disconnect the grabbed connection.
The second script is for setting up a WG connection from also a config file that can be then activated.
Example of a config files:
[Interface]
PrivateKey = private key
Address = 10.10.10.10/32
DNS = 198.0.0.1,198.0.0.2
[Peer]
PublicKey = public key
AllowedIPs = 0.0.0.0/1, 128.0.0.0/1, ::/1, 8000::/1
Endpoint = 11.22.33.44:51820
PersistentKeepalive = 300