https://github.com/PatchMyPCTeam/Community-Scripts/tree/main/Uninstall/Pre-Uninstall/Uninstall-Software
I can't add arguments when executing the PS1 from the cloud portal, so I'm trying to specify values like $DisplayName within the PS1 itself. I've set that value in the script in both locations where $DisplayName is set: under the 'AdditionalArguments' parameters, and under the Get-InstalledSoftware function.
Yet when I test run the PS1, it still prompts me to enter a value for DisplayName in the command line:
Anyone know how I need to properly supply this value (or others) within the PS1?
I can't add arguments when executing the PS1 from the cloud portal, so I'm trying to specify values like $DisplayName within the PS1 itself. I've set that value in the script in both locations where $DisplayName is set: under the 'AdditionalArguments' parameters, and under the Get-InstalledSoftware function.
Yet when I test run the PS1, it still prompts me to enter a value for DisplayName in the command line:
Code Select
cmdlet Uninstall-Software.ps1 at command pipeline position 1
Supply values for the following parameters:
DisplayName:
Anyone know how I need to properly supply this value (or others) within the PS1?