I have whittled down a more complex CMD script to the essentials. It reads an input file line by line, unquotes it (if quoted) and writes it out to another CMD file.
Like this :
@echo off (for /f "delims=" %%a in ('type bang1.txt') do echo echo P1:[%%~a])>bang2.cmd