I want to run the command
ex.exe property
where 'property' is the text which I first enter from the command line. How to write such batch script?
If I understand you correctly, you want a prompt for a variable value. Try something like:
set /p property=Enter Property:
ex.exe %property%