Initialize-PokeAPIModuleSettings
SYNOPSIS
Initializes the PokeAPI module settings.
SYNTAX
__AllParameterSets
Initialize-PokeAPIModuleSettings [-WhatIf] [-Confirm]
ALIASES
This cmdlet has the following aliases,
- Initialize-PokeModuleSettings
DESCRIPTION
The Initialize-PokeAPIModuleSettings cmdlet prepares the module for use.
It enables TLS 1.2 in Windows PowerShell, creates an empty in-memory response cache, and loads either the saved PokeAPI configuration or the default PokeAPI base URI into the current session.
The POKEAPI_BASE_URI environment variable overrides the saved or default base URI and a descriptive User-Agent is defined for every request.
This function runs automatically when the module is imported.
EXAMPLES
EXAMPLE 1
Initialize-PokeAPIModuleSettings
Resets the response cache and reloads the saved PokeAPI configuration
PARAMETERS
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- cf
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-WhatIf
Runs the command in a mode that only reports what would happen without performing the actions.
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- wi
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
NOTES
The Initialize-PokeModuleSettings alias is kept for older scripts.