Azure Storage File SAS token generated via PowerShell is not working

I have uploaded a file in Azure Storage container and have a requirement to generate the SAS token through PowerShell (New-AzStorageFileSASToken) as this script will be utilised in Azure Pipelines. However, the SAS token generated through PowerShell does not work but if I generate through Portal it works fine. SAS token is generated on file.
Below are the 2 tokens generated
Portal Token (works fine)

PowerShell Token (does not work)

Below is the script used to generate
$StartTime = Get-Date
$EndTime = $StartTime.AddHours(1.0)
$stTime = Get-Date $StartTime -Format “yyyy-MM-ddTHH:mm:ssZ”
$edTime = Get-Date $EndTime -Format “yyyy-MM-ddTHH:mm:ssZ”
$fileSASToken = New-AzStorageFileSASToken -ShareName $containerName -Context $ctx -Path $fileContent.ICloudBlob.Uri.AbsolutePath -Permission “rwd” -StartTime $stTime -ExpiryTime $edTime -Protocol HttpsOnly

Any help would be highly appreciated