Helper function to add a new ISE snippet
Add-ISESnippet [-Title] <Object> [-Description] <Object> [-Text] <Object> [-force]
Wrapper around New-ISESnippet that automaticcaly adds the author based on $env:USERNAME and the CaretOffset based on the positon of the char '^' within the text
$txt=@"
[PSCustomObject][ordered]@{ ^ } "@ Add-ISESnippet -Title PSCustomObject -Description "PSCustomObject" -Text $txt -Force
Title of the snippet.
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Description of the snippet.
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Body of the snippet.
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{Fill force Description}}
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False