# Show-Application

Executes Sitecore Sheer application.

## Syntax

Show-Application \[-Application] \<String> \[\[-Parameter] \<Hashtable>] \[-Icon \<String>] \[-Modal] \[-Title \<String>] \[-Width \<Int32>] \[-Height \<Int32>]

## Detailed Description

Executes Sitecore Sheer application, allows for passing additional parameters, launching it on desktop in cooperative or in Modal mode.

© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions

## Parameters

### -Application \<String>

Name of the Application to be executed. Application must be defined in the Core databse.

| Aliases                     |       |
| --------------------------- | ----- |
| Required?                   | true  |
| Position?                   | 1     |
| Default Value               |       |
| Accept Pipeline Input?      | false |
| Accept Wildcard Characters? | false |

### -Parameter \<Hashtable>

Additional parameters passed to the application.

| Aliases                     |       |
| --------------------------- | ----- |
| Required?                   | false |
| Position?                   | 2     |
| Default Value               |       |
| Accept Pipeline Input?      | false |
| Accept Wildcard Characters? | false |

### -Icon \<String>

Icon of the executed application (used for titlebar and in the Sitecore taskbar on the desktop)

| Aliases                     |       |
| --------------------------- | ----- |
| Required?                   | false |
| Position?                   | named |
| Default Value               |       |
| Accept Pipeline Input?      | false |
| Accept Wildcard Characters? | false |

### -Modal \<SwitchParameter>

Causes the application to show in new browser modal window or modal overlay if used in Sitecore 7.2 or later.

| Aliases                     |       |
| --------------------------- | ----- |
| Required?                   | false |
| Position?                   | named |
| Default Value               |       |
| Accept Pipeline Input?      | false |
| Accept Wildcard Characters? | false |

### -Title \<String>

Title of the window the app opens in.

| Aliases                     |       |
| --------------------------- | ----- |
| Required?                   | false |
| Position?                   | named |
| Default Value               |       |
| Accept Pipeline Input?      | false |
| Accept Wildcard Characters? | false |

### -Width \<Int32>

Width of the modal window.

| Aliases                     |       |
| --------------------------- | ----- |
| Required?                   | false |
| Position?                   | named |
| Default Value               |       |
| Accept Pipeline Input?      | false |
| Accept Wildcard Characters? | false |

### -Height \<Int32>

Height of the modal window.

| Aliases                     |       |
| --------------------------- | ----- |
| Required?                   | false |
| Position?                   | named |
| Default Value               |       |
| Accept Pipeline Input?      | false |
| Accept Wildcard Characters? | false |

## Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

* Sitecore.Data.Items.Item

## Notes

Help Author: Adam Najmanowicz, Michael West

## Examples

### EXAMPLE 1

Show Content Editor in new window (or as an overlay in modal mode in Sitecore 7.2+) with "/sitecore/templates" item selected.

```powershell
$item = gi master:\templates

Show-Application `
    -Application "Content Editor" `
    -Parameter @{id ="$($item.ID)"; fo="$($item.ID)";la="$($item.Language.Name)"; vs="$($item.Version.Number)";sc_content="$($item.Database.Name)"} `
    -Modal -Width 1600 -Height 800
```

### EXAMPLE 2

Show Content Editor as a new application on desktop with "/sitecore/content/home" item selected.

```powershell
$item = gi master:\content\home

Show-Application `
    -Application "Content Editor" `
    -Parameter @{id ="$($item.ID)"; fo="$($item.ID)";la="$($item.Language.Name)"; vs="$($item.Version.Number)";sc_content="$($item.Database.Name)"} `
```

## Related Topics

* [Read-Variable](/appendix/common/read-variable.md)
* [Show-Alert](/appendix/common/show-alert.md)
* [Show-Confirm](/appendix/common/show-confirm.md)
* [Show-FieldEditor](/appendix/common/show-fieldeditor.md)
* [Show-Input](/appendix/common/show-input.md)
* [Show-ListView](/appendix/common/show-listview.md)
* [Show-ModalDialog](/appendix/common/show-modaldialog.md)
* [Show-Result](/appendix/common/show-result.md)
* [Show-YesNoCancel](/appendix/common/show-yesnocancel.md)
* <https://github.com/SitecorePowerShell/Console/>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.sitecorepowershell.com/appendix/common/show-application.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
