# MiKTeX where do I specify command line options?

I'm using MiKTeX 2.9 and I want to specify the command line option --shell-escape. The reason for this is that I'm trying to use an eps file and I get the error

I read that this command line option can fix the problem, but where exactly do I specify it? I'm typesetting with LuaLaTeX using TeXworks as the editor.

-
Are you running LuaLaTeX from the command line or using an editor, and if so which one? –  Joseph Wright Aug 13 '12 at 17:56
@JosephWright TeXworks, added it to my question. –  Mr. Roland Aug 13 '12 at 17:58

With TeXworks, go to the main menu: Edit / Preferences, choose the Typesetting tab, choose your engine, click the Edit button, add --enable-write18 such as here:
Use the very same place if you would like to add --shell-escape instead. However, --shell-escape is used in TeX Live, --enable-write18 in MiKTeX.
In addition: --enable-write18 is the original switch for MiKTeX, but --shell-escape works, too. –  Speravir Aug 13 '12 at 18:11
Specify the switch after invoking LuaLaTeX. As an example, lualatex --shell-escape luatex.tex. This assumes you’re invoking LuaLaTeX from a command line.