This section describes the steps of exporting a project from PoshGUI. The steps are simple and include:
Navigate to the OUTPUT tab.
Under the Themes, you can see a number of options such as None (it’s the default one), IG, Metro, Metro Dark, Office 2010 Blue, and Office 2013.
They are default styles that you may add to change the way your application will look like.
Select any one of them as per your choice.
Next comes Configuration where you can find two toggles.
Multithreaded adds boilerplate code for setting up multithreading in the application.
Hide Console Window, as the name suggests, hides the console window; however, the window still appears for a second.
There are three options to export your project in. The functionality of each is as follows:
- COPY – You can simply copy your code and paste in the PowerShell ISE for execution.
- PS1 – It downloads the code in PowerShell file format so you can directly execute it from PowerShell CLI.
- TXT – It downloads the code in text format from where you can either copy-paste it into the PowerShell ISE or keep it for the record.
Example:
The image below shows the code execution by using COPY and pasting it in PowerShell ISE. Also, the theme Metro Dark is enabled on it.