Earlier quoted context omitted.
`dirs -v` would be `Get-Location -Stack`. Also in newish versions PowerShell `Set-Location` (aliased to `cd`) supports -/+ to move backwards/forwards in it's own history, so usually you don't even need to bother with `pushd`/`popd` unless you need a named stack.
what about pushd 7 to go to the 7th path in the stack?
function Set-StackLocation ($Position) {
(gl -Stack).Path | select -Index $Position | cd
}