New-CommanderMenuItem
SYNOPSIS
Creates a new menu item to use within a toolbar notification icon.
SYNTAX
New-CommanderMenuItem [[-Text] <String>] [[-Action] <ScriptBlock>] [[-MenuItem] <MenuItem[]>]
[[-LoadMenuItems] <ScriptBlock>] [[-ArgumentList] <Object[]>] [<CommonParameters>]
DESCRIPTION
Creates a new menu item to use within a toolbar notification icon.
EXAMPLES
Example 1
PS C:\> {{ Add example code here }}
{{ Add example description here }}
PARAMETERS
-Text
The text to display for this menu item.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Action
A script block to invoke when the menu item is clicked.
Type: System.Management.Automation.ScriptBlock
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-MenuItem
Child menu items to display.
Type: pscommander.MenuItem[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-LoadMenuItems
Child menu items to load dynamically.
Type: System.Management.Automation.ScriptBlock
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ArgumentList
Arguments passed to the action.
Type: System.Object[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: @()
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.