There are different commands in Linux and Windows to print the machine’s network configuration. They’re both supported in run-command:
run-command
Need more? Here’s the solution.