Imports characters by name as constants into the current scope.
Import-CharConstants.ps1 [-CharacterName] <String[]> [-Scope <String>] [-AsEmoji]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Import-CharConstants.ps1 NL :UP: HYPHEN-MINUS 'EN DASH' '—' '©' -Scope Script
Creates constants in the context of the current script for the named characters.
The control code abbreviation, Unicode name, HTML entity, or GitHub name of the character to create a constant for. “NL” will use the newline appropriate to the environment.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
The scope of the constant.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: Local
Accept pipeline input: False
Accept wildcard characters: False
Appends a U+FE0F VARIATION SELECTOR-16 suffix to the character, which suggests an emoji presentation for characters that support both a simple text presentation as well as a color emoji-style one.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.