Thanks,
New error now....
I am trying
And getting error
1. Script Invoke-WebRequest : Parameter cannot be processed because the parameter name
'u' is ambiguous. Possible matches include: -UseBasicParsing -Uri
-UseDefaultCredentials -UserAgent.
At C:\WINDOWS\TEMP\1-1925-XXDEVOPSTEST01-dispatch-script.tmp.ps1:2 char:9
+ curl -v -u username:password
https://XXXXXXXXXXXXXXXX...
+ ~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], Parame
terBindingException
+ FullyQualifiedErrorId : AmbiguousParameter,Microsoft.PowerShell.Commands
.InvokeWebRequestCommand
When tried modified command
New error
Invoke-WebRequest : A positional parameter cannot be found that accepts
argument '--upload-file'.
At C:\WINDOWS\TEMP\3-1927-XXDEVOPSTEST01-dispatch-script.tmp.ps1:2 char:1
+ curl -v -UserAgent username:password
https://XXXXXXXXXX ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], Parame
terBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell
.Commands.InvokeWebRequestCommand