# Turn Script into running program in taskbar

**URL:** <https://forums.powershell.org/t/turn-script-into-running-program-in-taskbar/22406>\
**Category:** Open Discussions\
**Created:** [May 31, 2023, 5:17pm UTC](https://forums.powershell.org/t/turn-script-into-running-program-in-taskbar/22406 "2023-05-31T17:17:27Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jctech2025](https://avatars.discourse-cdn.com/v4/letter/j/278dde/32.png) [@jctech2025](https://forums.powershell.org/u/jctech2025)\
**Post date:** [May 31, 2023, 5:17pm UTC](https://forums.powershell.org/t/turn-script-into-running-program-in-taskbar/22406/1 "2023-05-31T17:17:27Z")

</div>

Hi,

I have this PowerShell script I been working on. I have done lots of debugging and all the functions within it are working fine. I plan to add more options as needed. My end goal is to make it an available program that could run alongside other programs I have open. Would like it to be able to sit in the taskbar, where the end user just has to click it to open the window and run it like any other PowerShell script. Any thoughts on where I could start? I found an exe called ps2exe but it doesn’t seem to allow the script to be launched by clicking on it. It just something I been working in and would like to see it run as another program. Any thoughts would be appreciated.

Thanks.

---

<div class="post-metadata">

**Author:** ![matt-bloomfield](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@matt-bloomfield](https://forums.powershell.org/u/matt-bloomfield)\
**Post date:** [May 31, 2023, 9:15pm UTC](https://forums.powershell.org/t/turn-script-into-running-program-in-taskbar/22406/2 "2023-05-31T21:15:26Z")

</div>

If you want a .exe then there are various techniques to create one. This article has a good summary:

> **[The De Facto Guide for Converting a PS1 to EXE (7 Ways)](https://adamtheautomator.com/ps1-to-exe/)**
>
> If you need to convert a PS1 script to EXE, look no further. This guide walks you through every possible scenario with step-by-step instructions.

If you just want a shortcut on the task bar. Create a shortcut that points to something like:

```auto
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -NoProfile -NoExit -File E:\Temp\runme.ps1

```

Change the icon to something fancy and no one will be any the wiser 😉

You may have to experiment with the switches to get the exact result you’re after. You can view them with:

`powershell.exe /?`

---

<div class="post-metadata">

**Author:** ![jctech2025](https://avatars.discourse-cdn.com/v4/letter/j/278dde/32.png) [@jctech2025](https://forums.powershell.org/u/jctech2025)\
**Post date:** [May 31, 2023, 10:44pm UTC](https://forums.powershell.org/t/turn-script-into-running-program-in-taskbar/22406/3 "2023-05-31T22:44:50Z")

</div>

Thanks for the update! A old coworker had mentioned about wrapping it into an exe, so any end user could use it without having to actually opening PowerShell and all. I’ll take a look.

---

<div class="post-metadata">

**Author:** ![krzydoug](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/krzydoug/32/1008_2.png) [@krzydoug](https://forums.powershell.org/u/krzydoug)\
**Post date:** [June 1, 2023, 2:31am UTC](https://forums.powershell.org/t/turn-script-into-running-program-in-taskbar/22406/4 "2023-06-01T02:31:38Z")

</div>

I think you missed the important lesson. You don’t actually need an exe to be able to have a program people can run. As a matter of fact many times converting it to an exe is counterproductive because it gets flagged by antivirus or Windows defender

---

<div class="post-metadata">

**Author:** ![jctech2025](https://avatars.discourse-cdn.com/v4/letter/j/278dde/32.png) [@jctech2025](https://forums.powershell.org/u/jctech2025)\
**Post date:** [June 1, 2023, 4:10pm UTC](https://forums.powershell.org/t/turn-script-into-running-program-in-taskbar/22406/5 "2023-06-01T16:10:04Z")

</div>

Hey there, that is a good point. Yeah I’m mainly looking to learn how to make it into a program people can run after I do the dirty work. Been around PowerShell for years and trying to make something with it.

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [June 1, 2023, 7:41pm UTC](https://forums.powershell.org/t/turn-script-into-running-program-in-taskbar/22406/6 "2023-06-01T19:41:40Z")

</div>

> [@jctech2025](#):
>
> to learn how to make it into a program people can run

It depends pretty much on what you want to do with the script but the simplest way for people to run it would be to make a shortcut on the desktop or in the start menu they can click at. 🤷🏼‍♂️

---

<div class="post-metadata">

**Author:** ![jctech2025](https://avatars.discourse-cdn.com/v4/letter/j/278dde/32.png) [@jctech2025](https://forums.powershell.org/u/jctech2025)\
**Post date:** [June 1, 2023, 8:48pm UTC](https://forums.powershell.org/t/turn-script-into-running-program-in-taskbar/22406/7 "2023-06-01T20:48:56Z")

</div>

Olaf! yeah that is what I would like to do with it, allow it to be clicked on from either of those places and have the script load. I just haven’t done this before, so learning something new. I’m going along with the comments from Matt too.

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [June 1, 2023, 8:51pm UTC](https://forums.powershell.org/t/turn-script-into-running-program-in-taskbar/22406/8 "2023-06-01T20:51:33Z")

</div>

In case you wonder how to call the PowerShell console and run a script you simply run …

```auto
PowerShell /?

```

😉 👍🏼

---

<div class="post-metadata">

**Author:** ![jctech2025](https://avatars.discourse-cdn.com/v4/letter/j/278dde/32.png) [@jctech2025](https://forums.powershell.org/u/jctech2025)\
**Post date:** [June 2, 2023, 6:07pm UTC](https://forums.powershell.org/t/turn-script-into-running-program-in-taskbar/22406/9 "2023-06-02T18:07:37Z")

</div>

I can really say I have hardly ever run that simple command, I’ll have to pay more attention to it. Usually I’m reading the errors in my scripts and trying to drill down and debug from there.

---

<div class="post-metadata">

**Author:** ![ThePSDR](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@ThePSDR](https://forums.powershell.org/u/ThePSDR)\
**Post date:** [September 11, 2023, 3:34pm UTC](https://forums.powershell.org/t/turn-script-into-running-program-in-taskbar/22406/10 "2023-09-11T15:34:41Z")

</div>

What I do (many times) is create a MS shortcut that links to the starting script (ie. Home.ps1). This way, you can alter the scripts as many times as you want without having to re-compile the exe. Obv not as nice for distribution, but if it is just for someone to click and use then this work. You can even change the icon image.

Just make sure you point the shortcut to your script and “Start in:” should be either PSv5 or PSv5 directory depending on what you are using.
