function Escape-String($name) { [System.Uri]::EscapeDataString($name) } Escape-String "Hello World" Escape-String "