Run PowerShell Script with Parameters from Command line
powershell.exe -File myscript.ps1 param1 param2 -File Runs the specified script in the local scope (“dot-sourced”), so that the functions and variables that the script creates are available in the current […]