GUIWorK does not provide direct support for authors writing their own Perl/PG/PGML code.
Although such code can be added to the GUIWorK generated file, it will be lost if the file is subsequently copied back to GUIWorK, edited, and copied to WeBWorK.