I was wondering how to make available powershell variable in order to be read from the command line. Is that possible?
The command is
get-wmiobject win32_networkadapter -filter "netconnectionstatus = 2" | Select -Expand macaddress -Last 1 | set-variable -name mac1