Community.PowerShellMonitoring.PageSet.Probe.SimplePowerShellScript (UIPageSet)

Element properties:

Type DefinitionCommunity.PowerShellMonitoring.Probe.SimplePowerShellScript

Source Code:

<UIPageSet ID="Community.PowerShellMonitoring.PageSet.Probe.SimplePowerShellScript" TypeDefinitionID="Community.PowerShellMonitoring.Probe.SimplePowerShellScript">
<UIPageReferences>
<UIPageReference ID="Community.PowerShellMonitoring.PageSet.Probe.SimplePowerShellScript.Script" PageID="Windows!Microsoft.Windows.ScriptPage">
<InputParameters>
<ScriptName>MyScript.ps1</ScriptName>
<ScriptBody><Script># Any Arguments specified will be sent to the script as a single string.
# If you need to send multiple values, delimit them with a space, semicolon or other seperator and then use split.
param([string]$Arguments)

</Script></ScriptBody>
</InputParameters>
<InputTransform>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:copy-of select="/ScriptName"/>
<xsl:copy-of select="/Arguments"/>
<xsl:copy-of select="/ScriptBody"/>
<xsl:copy-of select="/TimeoutSeconds"/>
</xsl:template>
</xsl:stylesheet>
</InputTransform>
<Title ID="Title"/>
<TabName ID="TabName"/>
</UIPageReference>
</UIPageReferences>
<OutputTransform>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:element name="ScriptName">
<xsl:value-of select="/ScriptName[1]"/>
</xsl:element>
<xsl:element name="Arguments">
<xsl:value-of select="/Arguments[1]"/>
</xsl:element>
<xsl:element name="ScriptBody">
<xsl:value-of select="/ScriptBody[1]"/>
</xsl:element>
<xsl:element name="TimeoutSeconds">
<xsl:value-of select="/TimeoutSeconds[1]"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
</OutputTransform>
</UIPageSet>