I try to answer PS questions, but I don't use Azure and don't have a clue about amortized costs.
I did this search.
https://www.bing.com/search?q=azure%20amortized%20costs%20powershell%20example
CoPilot returned this script. I see that there is a IncludeAmortizedCost switch. Did you see that? Does this help?
# Connect to Azure account
Connect-AzAccount
# Set the subscription context (replace with your Subscription ID)
$SubscriptionId = "your-subscription-id"
Set-AzContext -SubscriptionId $SubscriptionId
# Define the time range for the cost query
$StartDate = (Get-Date).AddDays(-30).ToString("yyyy-MM-dd") # Last 30 days
$EndDate = (Get-Date).ToString("yyyy-MM-dd")
# Query the cost details with amortized cost enabled
$CostDetails = Get-AzConsumptionUsageDetail -StartDate $StartDate -EndDate $EndDate -IncludeAmortizedCost
# Display the results
$CostDetails | Select-Object ResourceName, ResourceGroupName, AmortizedCost, UsageStart, UsageEnd | Format-Table