function Get-XYZSomething { $testVar2 = "Shouldn't find this variable" } $testVar1 = "Should find this variable" Get-XYZSo $testVar Import-Module PowerShellGet Get-Rand function Test-Completion { param([Parameter(Mandatory, Value)]$test) } Get-ChildItem / [System.Collections.ArrayList].GetType() [System.Collect