{"id":"KB-PS5-1-SPLIT-PATH-PARAMSET","note":"Occurs with some wrappers, -File usage, or UNC paths.","blocking":false,"fix":"Robust resolution: PSScriptRoot or PSCommandPath or MyInvocation.MyCommand.Path -\u003e [IO.Path]::GetDirectoryName(...).","tags":["powershell","path","compat","ps5.1","unc"],"workaround":"Prefer $PSScriptRoot or $PSCommandPath; fallback via $MyInvocation.MyCommand.Path then [IO.Path]::GetDirectoryName().","seen_in_threads":"2025-10-22","title":"Split-Path -LiteralPath -Parent may raise AmbiguousParameterSet on PS 5.1","last_seen":""}