Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 560 Bytes

ReservedCmdletChar.md

File metadata and controls

37 lines (26 loc) · 560 Bytes
description ms.custom ms.date ms.topic title
Reserved Cmdlet Chars
PSSA v1.22.0
06/28/2023
reference
ReservedCmdletChar

ReservedCmdletChar

Severity Level: Error

Description

You cannot use following reserved characters in a function or cmdlet name as these can cause parsing or runtime errors.

Reserved Characters include: #,(){}[]&/\\$^;:\"'<>|?@`*%+=~

How

Remove reserved characters from names.

Example

Wrong

function MyFunction[1]
{...}

Correct

function MyFunction
{...}