As far as I know, you don't need to install anything to use scriptcs.
You can get it via Chocolatey, but you can also get it as a zip file. If you want to use that specific Chocolatey version, just change .nupkg to .zip and you will be able to extract the package.
This allows to run it as:
scriptcs.exe yourScript.xcs
So it can be executed from .cmd or .bat file as:
call scriptcs.exe yourScript.xcs
Note that:
- at this point, scriptcs does not use the latest version of "Roslyn", so it doesn't have the new C# 6 features
- for now it is not possible to create a executable file from .xcs file, therefore there is no possibility to run it as
MyCompiledScriptAndExportedTo.exe -param1 -param2
. See first full discussion and second full discussion