-
-
Notifications
You must be signed in to change notification settings - Fork 4
Get ScriptReference
James Brundage edited this page Apr 22, 2022
·
5 revisions
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.
Get-Command Get-ScriptReference | Get-ScriptReference
The path to a file
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[String[]] |
true | 1 | true (ByPropertyName) |
One or more PowerShell ScriptBlocks
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[ScriptBlock[]] |
true | 1 | true (ByValue, ByPropertyName) |
If set, will recursively find references.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Switch] |
false | named | false |
Get-ScriptReference [-FilePath] <String[]> [-Recurse] [<CommonParameters>]
Get-ScriptReference [-ScriptBlock] <ScriptBlock[]> [-Recurse] [<CommonParameters>]
Adding a footer
Testing if custom sidebar overrides automatic