DocumentationMathematicaThe Mathematica BookMathematica Reference GuideInput Syntax
A.2.11 Special Input
Special input lines.
In most implementations of Mathematica, you can give a line of special input anywhere in your input. The only constraint is that the special input must start at the beginning of a line.
Some implementations of Mathematica may not allow you to execute external commands using !command.