Step 2: Establish the authorization and content type headers.

ARTIFACTORY: How to Run AQL Commands in Windows Using PowerShell

AuthorFullName__c
Yonatan Hen
articleNumber
000005774
ft:sourceType
Salesforce
FirstPublishedDate
2023-06-08T15:48:02Z
lastModifiedDate
2023-06-08
VersionNumber
1
To authenticate your request, you need to encode your username and password using Base64. PowerShell provides a convenient way to achieve this. Additionally, you need to specify the content type as "text/plain" for the request headers.
$base64Auth = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes("${username}:${password}"))
$headers = @{
    "Authorization" = "Basic $base64Auth"
    "Content-Type" = "text/plain"
}