Gets a script's references
Gets the external references of a given PowerShell command. These are the commands the script calls, and the types the script uses.
EXAMPLE 1
Get-Command Get-ScriptReference | Get-ScriptReferenceThe path to a file
| Type | Required | Position | PipelineInput | Aliases |
|---|---|---|---|---|
[String[]] |
true | 1 | true (ByPropertyName) | Fullname |
One or more PowerShell ScriptBlocks
| Type | Required | Position | PipelineInput | Aliases |
|---|---|---|---|---|
[ScriptBlock[]] |
true | 1 | true (ByValue, ByPropertyName) | Definition |
If set, will recursively find references.
| Type | Required | Position | PipelineInput |
|---|---|---|---|
[Switch] |
false | named | false |
Get-ScriptReference [-FilePath] <String[]> [-Recurse] [<CommonParameters>]Get-ScriptReference [-ScriptBlock] <ScriptBlock[]> [-Recurse] [<CommonParameters>]