These snippets can be used to get network related information.
netsh wlan show wlanreport
To take a packet capture using netsh:
netsh trace start capture=yes
If the packet capture needs to be filtered to only a specific IP address:
netsh trace start capture=yes IPv4.Address=192.0.2.1
Once the issue is reproduced, stop the capture:
netsh trace stop
The capture will then be saved in %LOCALAPPDATA%\Temp\NetTraces\. To open the etl file in Wireshark, get the etl2pcapng utility from the Microsoft GitHub page.