I just spent a few minutes setting up a Factorio Headless Server on my VPS Window Server and I saw that the script on their Wiki is formatted wrong. Below is my modified version of their script. Make sure each statement is on it own line and move all the x64 binary folder to c:\factorio\0.14.22\ and run the .bat from the root of 0.14.22.
I like to launch it from the .bat [link to file] because I can track the saves easier and change the configuration quicker. You will also need to forward port 34197 to that server and any other port that your going to use.
cd %FactorioExeLocation% echo.
echo.PREPARING TO LAUNCH FACTORIO SERVER...
echo Save to be loaded: echo %SaveLocation%%SaveFileName%
echo. Server Settings to load: echo %ServerSettingsLocation%%ServerSettingsFileName%
echo *** Remember to use Ctrl+C to ensure saving when finished instead of simply closing this window ***
factorio.exe --start-server "%SaveLocation%%SaveFileName%" --server-settings "%ServerSettingsLocation%%ServerSettingsFileName%" pause 3
You should get the output similar to below.