Skip to content

Should have cmdlet to verify cmdlets in a given script #924

Open
@SteveL-MSFT

Description

@SteveL-MSFT

Summary of the new feature / enhancement

Maybe call it Resolve-Dependency which takes a path to a ps1 (or psm1), uses PowerShell to parse to AST extracting all the commands and seeing if they are actually available on the current system.

If it's a cmdlet and not on the system, discover which module via PowerShellGet to install for that cmdlet or if a native command, just give a warning message that it wasn't found on the system. For security, make it clear if the module is from an untrusted repository.

Proposed technical implementation details (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions