How to download datasets via PowerShell

Example script to download datasets via PowerShell:

$uri = 'https://hub.mapstand.com/gs/ows?service=WFS&version=1.0.0&request=GetFeature&typename=mps%3Apowerplant_conventional_installed&outputFormat=json&srsName=EPSG%3A4326&apikey=xxxxxxxxxxxxxxxxxxxx'  
$file = 'C:\powerplant_conventional_installed.json'  
Invoke-WebRequest -Uri $uri -OutFile $file

[Where xxxxxxxxxxxxxxxxxxxx is you API Access Token]