I'm totally not sure if I understand the question , but...
@echo off
setlocal enableDelayedExpansion
set "states="
for /f "eol=- tokens=2" %%a in ('NETSH ADVFIREWALL SHOW ALLPROFILES STATE^|find /i "state"') do (
if /i "%%a" EQU "ON" (
set states=!states!1
) else (
set states=!states!0
)
)
title {---------------} Tech Tools --- FW:!states! {---------------}
endlocal