scripts

Select-ScriptCommands.ps1

SYNOPSIS

Returns the commands used by the specified script.

SYNTAX

Select-ScriptCommands.ps1 [[-Path] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

EXAMPLES

EXAMPLE 1

Select-ScriptCommands.ps1 Select-ScriptCommands.ps1

CommandType Name Version Source ———– —- ——- —— Cmdlet Out-Null 7.5.0.500 Microsoft.PowerShell.Core Cmdlet Where-Object 7.5.0.500 Microsoft.PowerShell.Core Cmdlet Select-Object 7.0.0.0 Microsoft.PowerShell.Utility Cmdlet Get-Command 7.5.0.500 Microsoft.PowerShell.Core Cmdlet Resolve-Path 7.0.0.0 Microsoft.PowerShell.Management Filter Get-ScriptCommands

PARAMETERS

-Path

A script file path (wildcards are accepted).

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-ProgressAction

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String containing the path to a script file to parse.

OUTPUTS

System.Management.Automation.CommandInfo for each command parsed from the file.

NOTES

https://learn.microsoft.com/dotnet/api/system.management.automation.language.parser.parsefile

Get-Command