Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.27 KB

Get-ScriptReference.md

File metadata and controls

54 lines (38 loc) · 1.27 KB

Get-ScriptReference

Synopsis

Gets a script's references


Description

Gets the external references of a given PowerShell command. These are the commands the script calls, and the types the script uses.


Examples

EXAMPLE 1

Get-Command Get-ScriptReference | Get-ScriptReference

Parameters

FilePath

The path to a file

Type Required Position PipelineInput Aliases
[String[]] true 1 true (ByPropertyName) Fullname

ScriptBlock

One or more PowerShell ScriptBlocks

Type Required Position PipelineInput Aliases
[ScriptBlock[]] true 1 true (ByValue, ByPropertyName) Definition

Recurse

If set, will recursively find references.

Type Required Position PipelineInput
[Switch] false named false

Syntax

Get-ScriptReference [-FilePath] <String[]> [-Recurse] [<CommonParameters>]
Get-ScriptReference [-ScriptBlock] <ScriptBlock[]> [-Recurse] [<CommonParameters>]