I have the following defined at the top of my Function
functionUninstall-Software
{
param
(
[string]
$ComputerName='',
[string]
$RemoveSoftware=''
)
{
param
(
[string]
$ComputerName='',
[string]
$RemoveSoftware=''
)
when I type get-help Uninstall-Software it says this:
PS C:\> get-helpUninstall-Software
NAME
Uninstall-Software
SYNTAX
Uninstall-Software [[-ComputerName] <string>] [[-RemoveSoftware] <string>]
NAME
Uninstall-Software
SYNTAX
Uninstall-Software [[-ComputerName] <string>] [[-RemoveSoftware] <string>]
yet when I try to run this from a command line only -ComputerName shows in the popup window. how come it does not know what -RemoveSoftware is?
Thanks.