Dear Luis, I am confused as the following sequence does not work.
$ RunAsService install "WatchExec" "C:\Test\watchexec.exe --postpone -w C:\FolderToWatch C:\Test\FileToLaunchOnChange.bat"
You must specify the path to a console application executable. Nothing in the parameters you specified pointed to an executable.
Dear Luis, I am confused as the following sequence does not work.