I am giving a curl command in powershell like : curl -u username:password
and it throws the below error:
Invoke-WebRequest : Parameter cannot be processed because the parameter name 'u' is ambiguous. Possible matches include: -UseBasicParsing -Uri -UseDefaultCredentials -UserAgent. At C:\Users\PrasadKRampure\Desktop\Untitled2.ps1:4 char:6
- curl -u ${Username}:${Password} http://*****/job/remote- ...
-
~~
- CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
- FullyQualifiedErrorId : AmbiguousParameter,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
But the same command work fine from command prompt.