Adding an enumeration to the script
To add an enumeration type to the script, call the TfsScript.AddEnum method. The first parameter is the name of the type, the second one is the type values separated by commas.
fsScript1.AddEnum('TPrinterOrientation', 'poPortrait, poLandscape');