Got the script to work just as I needed it, now I can use it in our RMM tool. @SeñorCMasMas thanks for the initial help
@echo off
setlocal ENABLEDELAYEDEXPANSION
for /f "tokens=2 delims=:" %%r in ('netsh wlan show interface name=Wi-Fi ^| findstr "Channel"') do Set Channel=%%r
if [!Channel!] EQU [] (echo Wi-Fi Not Connected)
if !Channel! GEQ 36 if !Channel! LEQ 177 (echo 5GHZ)
if !Channel! GEQ 1 if !Channel! LEQ 11 (echo 2.4GHZ)
@echo off
setlocal ENABLEDELAYEDEXPANSION
for /f "tokens=2 delims=:" %%r in ('netsh wlan show interface name=Wi-Fi ^| findstr "Channel"') do Set Channel=%%r
if [!Channel!] EQU [] (echo Wi-Fi Not Connected)
if !Channel! GEQ 36 if !Channel! LEQ 177 (echo 5GHZ)
if !Channel! GEQ 1 if !Channel! LEQ 11 (echo 2.4GHZ)