PowerShell CheatSheet – Special Characters

When surrounded by single quotes, PowerShell accepts these characters as written.

"
The beginning (or end) of quoted text.

#
The beginning of a comment.

$
The beginning of a variable.

&
Reserved for future use.

(, )
Parentheses used for sub-expressions.

;
Statement separator.

{ }
Script block.

|
Pipeline separator.

`
Escape character.

Leave a Reply

Scroll to Top