Skip to content

Passing parameters to Powershell #11

Description

@elanzini

Is this functionality already built in?

Example usage:

# CreateFile.ps1
Param (
  $Path
)
New-Item $Path # Creates a new file at $Path.
Write-Host "File $Path was created"
./CreateFile.ps1 -Path './newfile.txt' # File ./newfile.txt was created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions