To run a file as an argument to an executable file inside command window, the executable file should be in the path enviroment variable or you have to give the complete the path to the executable file.
Now in windows explorer go to the folder containing the .tex file you wish to pass as argument. Press shift key and right click on the folder. On the context menu, you will see "Open command window here". Select this command to open the command window inside this folder. Now you can give the executable file followed by a space and the file you wish to run.
If there are any spaces in the file names, you have to include the entire file name (and path if any like Program files) in double quotes.