Cross Platform Way to get Parent Path

Windows

$(Split-Path $pwd)

Linux/MacOS

dirname $(pwd)