ParentFull threadcglong·Have you taken a look at PowerShell? It can infer whether you're invoking a command or function.Disclaimer: I work at Microsoft, but not on PowerShell.View on HN