Trying to replicate the steps in
Basic auth for REST APIs .
$Text = ‘your_email@domain.com:your_user_api_token’ $Bytes = [System.Text.Encoding]::UTF8.GetBytes($Text) $EncodedText = [Convert]::ToBase64String($Bytes) $EncodedText
throws error '$Text' is not recognized as an internal or external command,
operable program or batch file.
'$Bytes' is not recognized as an internal or external command,
operable program or batch file.
'$EncodedText' is not recognized as an internal or external command,
operable program or batch file.
I am using Windows.
please let me know what am I doing wrong?
Not sure if i need some extra access or permissions.