powershell api example