Read-HashTable

SYNOPSIS

Reads input for items

SYNTAX

Read-HashTable [-ChoiceList] <String[]> [-Caption] <String> [[-Message] <String>] [[-Default] <Int32>]
 [<CommonParameters>]

DESCRIPTION

Reads input for hashtable keys specified by a choice list.

EXAMPLES

Example 1

PS C:\> Read-HashTable -ChoiceList PathToInstaller, InstallerArguments -Message "Provide the following values"

Reads the values to use for PathToInstaller and InstallerArguments and returns a hashtable

PARAMETERS

-ChoiceList

The list of hashtables keys to fill

Type: String[]
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Caption

The caption to display

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Message

The message to display

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Default

@{Text=}

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES