Quantcast
Channel: SAPIEN Forums
Viewing all articles
Browse latest Browse all 546

PowerShell GUIs • PowerShell GUI but with silent mode, output in PS Window

$
0
0
Hey all,

I have written a script that has a GUI for interaction, but the desire to interact with it via command line has come up and I have implemented some basics of being able to run actions (functions) from the GUI silently without the GUI loading obviously, but is there a way to redirect the output to the Powershell window that called it? I know the purpose is to redirect all output to the GUI forms, but I also saw in the startup.pss :

Code:

        .SYNOPSIS        The Main function starts the project application.        .PARAMETER Commandline        $Commandline contains the complete argument string passed to the script packager executable.        .NOTES        Use this function to initialize your script and to call GUI forms.    .NOTES        To get the console output in the Packager (Forms Engine) use: $ConsoleOutput (Type: System.Collections.ArrayList)
Is there a way to achieve what I am asking? I did try tinkering with the above, but I was unsuccessful.

Statistics: Posted by NewRootUsr — Fri Nov 08, 2024 6:00 am



Viewing all articles
Browse latest Browse all 546

Trending Articles