This section describes the steps of exporting a project from PoshGUI. The steps are simple and include:
Navigate to the OUTPUT tab.
Next comes Configuration where you can find two toggles.
Hide Console Window, as the name suggests, hides the console window; however, the window still appears for a second.
Auto Add $Form.ShowDialog() determines whether the application should automatically add a line at the end of the script to display the form.
If you disable this toggle, you have to implement showing the form yourself
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.