Returns the commands used by the specified script.
Select-ScriptCommands.ps1 [[-Path] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
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
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
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
https://learn.microsoft.com/dotnet/api/system.management.automation.language.parser.parsefile