A script does one thing and one thing only: it mimics what is typed at the keyboard. Anything you enter in AutoCAD that shows up on the “Command:” line prompt can be put into a script file.
AutoCAD and therefore AutoCAD Electrical can run the majority of its commands from the Command line without the requirement of “pop-up” dialogue boxes. This means that multiple commands can be grouped together in what is known as a script on an individual drawing, selected drawings or an entire project.
An example may be simply that you want to perform a Zoom Extents, a Purge and an Audit. This in normal AutoCAD commands could take days on several hundred drawings!