Use parameters to your Powershell scripts

here’s how to use parameters to your script

Ex: ./myscript.ps1-path “c: \ temp”-a value

Param ([string] $ path, [int] $ value)
Write-host “the path is: $ path and the value is $ value”

Leave a Comment