Just get the 7th path from `Get-Location` and `Set-Location` there, e.g.
function Set-StackLocation ($Position) {
(gl -Stack).Path | select -Index $Position | cd
}