Settings
The Settings region is used to declare PowerShell constant variables (“settings”) that are used throughout the ScriptoForm script. These usually represent unique values specific to your corporate environment, such as a specific DNS server IP address or Active Directory domain name, that will rarely or never change. This region may also contain other constants specific to the script itself such as timeout values or fixed lists. This region should never contain calculated or derived values.
As best practice, all variable names in this section should follow the industry standard of using SCREAMING_SNAKE_CASE to indicate that they are constants. PowerShell does not provide for a native way to declare constants, however the use of SCREAMING_SNAKE_CASE should help easily differentiate between normal variables and constants.
This region is denoted with the #region Settings tag and usually occurs between the Header and the Assemblies regions in a ScriptoForm script.
Examples
Section titled “Examples”#region Settings$DNS_SERVER = "10.10.10.1"$DOMAIN_NAME = "CORP.PRI"$SUPPORT_CONTACT = "FirstName LastName"#endregion