PowerTip: Open PowerShell ISE and a Script


Summary: Learn how to open the Windows PowerShell ISE and a script at the same time.

Hey, Scripting Guy! Question How can I open a specific script and the Windows PowerShell ISE at the same time?

Hey, Scripting Guy! Answer Use the Windows PowerShell_ISE command from the Windows PowerShell console,
            a command prompt or the Start/Run command. Specify the –File option and supply
            one or more scripts to the command. The following command opens two scripts, Bios.ps1
            and Bogus.ps1 from the current directory:

PowerShell_ISE –file “.\Bios.ps1,Bogus.ps1”

Comments (2)

  1. tommymaynard says:

    This is just too bizarre. I often use the ise alias in the Windows PowerShell console to launch the ISE. Today, literally 23 minutes before this post, I entered a path after the alias for the first time EVER (and of course, it worked).

    Get-History | Where {$PSItem.CommandLine -like ‘ise *’} | select ID,CommandLine,StartExecutionTime,EndExecutionTime

    Id CommandLine StartExecutionTime EndExecutionTime
    — ———– —————— —————-
    8 ise C:UserstommymayDesk… 1/2/2015 12:36:36 PM 1/2/2015 12:36:37 PM

  2. max_russell says:

    I’ve been looking for a powertoy or registry value to allow me to open PowerShell ISE at a specific folder location. I can currently open PowerShell by right clicking a folder and when it opens, that will be the prompt location. I would find it really
    useful to be able to do similar, with PowerShell ISE.

Skip to main content