The following is a **Work in progress** [[PowerShell]] script for [[SentinelOne]] that invokes the [[REST API]]. ```PowerShell # Define variables $apiUrl = "https://usea1-pax8-exsp.sentinelone.net/web/api/v2.1/sites" # Replace with the target API URL $siteName = Read-Host "Enter the client name" $apiKey = Read-Host "Enter the API key" $headers = @{ "Authorization" = "ApiToken $apiKey" } # Prepare the request body $requestBody = @{ data = @{ inherits = "true" unlimitedExpiration = "true" name = $siteName accountId = "1337750469341073627" licenses = @{ modules = @( @{ name = "rogues" } ) bundles = @( @{ name = "Control (Unlimited)" surfaces = @( @{ name = "control" count = -1 } ) } ) } siteType = "Paid" description = "$ClientName created by script" unlimitedLicenses = "true" } } | ConvertTo-Json -Depth 10 # Make the POST request $response = Invoke-RestMethod -Uri $apiUrl -Method POST -Body $requestBody -ContentType "application/json" -Headers $headers # Display the response (optional) $response ```