For a batch file, use %%a instead of %a .
Profile : MyHomeNetwork Authentication : WPA2PSK Encryption : AES Connection mode : auto netsh show wlan profiles
Type the following, replacing "Home_Network_5G" with the name of the network you found in Step 2: For a batch file, use %%a instead of %a
User profiles All User Profile : Starbucks_WiFi All User Profile : Home_Network_5G All User Profile : Guest_WiFi All User Profile : Office_Corp For a batch file