function Test-InvocationOfCommand { [CmdletBinding()] param() $x = Test-MyInvocationCommand Write-Host $x }