netsh wlan show profile
Here is what the above code is Doing:
1. The first line imports the subprocess module.
2. The second line creates a variable called command that stores the command we want to run.
3. The third line runs the command stored in command and saves the output.
4. The fourth line prints the output of the command to the screen.