Find-PpWinGetCmd
Find-PpWinGetCmd
SYNOPSIS
Find the path to the WinGet executable.
SYNTAX
__AllParameterSets
Find-PpWinGetCmd [<CommonParameters>]
ALIASES
This cmdlet has the following aliases,
DESCRIPTION
Find the path to the WinGet executable. If the WinGet executable is not found, the function will return $false.
EXAMPLES
EXAMPLE 1
$WingetPath = Find-PpWinGetCmd
EXAMPLE 2
$WingetPath = Find-PpWinGetCmd -AllowInstallOfWinGet $true
PARAMETERS
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
Custom function not from CapaSystems. Idea from: https://github.com/Romanitho/Winget-Install/blob/main/winget-install.ps1