34,333
edits
Changes
→Windows PowerShell & Operator
== Windows PowerShell & Operator ==
The Windows PowerShell & operator is a little known, yet extremely useful operator. Quite simply, it allows a string to be treated as a command. This is particularly useful when creating dynmaic dynamic commands within a PowerShell script. In the following example, the following commands assign the string ''Get-ChildItem'' to a variable named ''$mycommand'':
<pre>