Command-line parameters
From PowerGUI Wiki
PowerGUI Administrative Console
Most of the time you are working with the PowerGUI Administrative Console, you won't need to use the command-line arguments. It is still worth noting what command-line arguments are available, because there are cases when you will want to use them. The PowerGUI Administrative Console supports the following command-line arguments:
| Argument | Description |
|---|---|
| -safe | This argument tells PowerGUI Administrative Console to start without loading PowerShell profiles (by default, all profiles are loaded). |
| -sta | This argument tells PowerGUI Administrative Console to start in STA (Single-Threaded Apartment) mode. This argument requires PowerShell 2.0 or later to be installed. Certain PowerPacks, such as the Facebook PowerPack, require STA mode. To use those PowerPacks, open the PowerGUI Administrative Console with the -STA command-line argument. |
IMPORTANT NOTE: On 64-bit systems you can open either the 32-bit or the 64-bit version of the PowerGUI Administrative Console. This is done by using the appropriate Start Menu shortcut, or calling the appropriate executable from the command line (32-bit executables will have a suffix of "_x86" on 64-bit systems). Some functionality may only be available in either 32-bit or 64-bit mode, but not both, so you need to be aware of any requirements in the PowerPacks you use that specify what platform they support. For both 32-bit and 64-bit versions of the PowerGUI Administrative Console, you can use the command-line arguments listed above to get the functionality you need.
Go back to the Administrative Console page.
PowerGUI Script Editor
The PowerGUI Script Editor does not have any command-line arguments at this time; however, if you open the PowerGUI Script Editor with a path to a script file, that script file will be opened automatically for editing.
See also: Using Editor from external applications.
