for /f \"delims=\" %%a in (\'\"%systemRoot%\\system32\\find.exe\" /?\') do @echo %%a
Yes, the previous line works. Not much useful but works. But t
It is somewhat easier to put the first token from the instruction of the for-loop into a token without quotes.
for /f "delims=" %%a in ( ' if defined OS "C:\my folder with spaces\consoleapp.exe" /param1:"value" ' )do @echo %%a