Here is my PowerShell script
$connectionDetails = @{
'TenantId' = '****-****'
'ClientId' = '****-****'
'Interactive' = $true
'Scopes' = '****-****'
'RedirectUri' = '****-****'
}
$token = Get-MsalToken @connectionDetails
$accessToken = $token.AccessToken
write-output $accessToken
It errors out as follows:
AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'
Why am I getting this error? How can I fix it?

