Get-DbgStackTrace.ps1

<#
 
.SYNOPSIS
 
Gets the current stack trace
 
#>

param($Count = 14, [switch] $IncludeParameters)

if($IncludeParameters)
{
    Invoke-DbgCommand "KP $Count"
}
else
{
    Invoke-DbgCommand "K $Count"
}