I need to pass the SSID name to my simple script with the main line as follows
netsh wlan set profileparameter name="SSID" cost=variable
So I know I can get the SSID from executing
Netsh WLAN show profiles
and looking at the line "Current user profile" find needed value. But without grep and sed how can I use the value from command output?
P.S. The idea is to use native Windows tools, not CigWin or UNIX services i.e. not to install any additional software if it is possible.