How do you run a Powershell script?

  1. Launch PowerShell
  2. Navigate to the directory where the script lives
    PS> cd C:\your_path\script_folder\ (enter)
  3. Execute the script:
    PS> .\your_powershell_script.ps1 (enter)

Add Comment