| If you want a literal percent sign, you need to double it:
set T=1%%
echo %T%
| Otherwise, it's interpreted as the start of a variable or function name.
Thanks for all for help from everybody that posted. Doubling %'s was the hint I needed and I was able to solve my problem just...