A form definition in a script begins with a line that starts with a pc command and ends with the line <rem form end>.
Scripts in system\packages\forms are used as templates for new forms.