Send-TeamsPokemon
SYNOPSIS
Sends a Pokemon image & stats to a Teams channel
SYNTAX
Send-TeamsPokemon [-TeamsUri] <String> [<CommonParameters>]
DESCRIPTION
The Send-Pokemon script sends a Pokemon image & stats to a Teams channel using a Teams webhook connector URI.
This script will only send to teams if the $DeployPokemon variable is set to true which is randomized
Pokemon images & facts are pulled from the PokeAPI
Unless the -Verbose parameter is used, no output is displayed.
EXAMPLES
EXAMPLE 1
.\Send-Pokemon.ps1 -TeamsURI 'https://outlook.office.com/webhook/123/123/123/.....'
Using the defined webhooks connector URI a random Pokemon image & stats are sent to the webhooks Teams channel.
No output is displayed to the console.
EXAMPLE 2
.\Send-Pokemon.ps1 -TeamsURI 'https://outlook.office.com/webhook/123/123/123/.....' -Verbose
Using the defined webhooks connector URI a random Pokemon image & stats are sent to the webhooks Teams channel.
Output is displayed to the console.
PARAMETERS
-TeamsUri
A string that defines where the Microsoft Teams connector URI sends information to.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
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
TeamsURI
OUTPUTS
Console
NOTES
NAME: Send-TeamsPokemon.ps1 Type: PowerShell
AUTHOR: David Schulte
DATE: 2022-06-20
EMAIL: celerium@celerium.org
Updated:
Date:
VERSION HISTORY: 0.1 - 2022-06-20 - Initial Release 0.2 - 2024-12-15 - General cleanup
TODO: N\A