To add to this, since powershell doesn't really do curl or wget anymore, you can use "invoke-restmethod:"
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-restmethod?view=powershell-7
https://wilsonmar.github.io/powershell-rest-api/
Here’s how I got it to work in PS version4:
PS C:\Users\Administrator> $pwd = ConvertTo-SecureString "password" -AsPlainText -Force
PS C:\Users\Administrator> $cred = New-Object Management.Automation.PSCredential ('admin', $pwd)
PS C:\Users\Administrator> Invoke-RestMethod -method get -uri "http://10.193.67.10/api/protocols/nfs/connected-clients?svm.name=DEMO&return_timeout=15&return_records=true" -cred $cred
records
-------
{@{svm=; node=; server_ip=10.193.67.219; client_ip=10.63.150.51; volume=; protocol=nfs3; _links=}, @{svm=; node=; server_ip=10.193.67.219; client_ip=10.63.150.51; volume=; protocol=nfs3; _links=},...
Powershell 6 and later adds -Authentication, which makes the cred part easier.