Comments

To create single-line comments, begin a line with the character #. Windows PowerShell does not support multi-line comments, but it is possible to deactivate larger regions of your script by placing them in a here string:

# This is a regular comment

# Start of the here string
$null = @"
function MyTest
{
       "This should not be considered a function"
}

$myVariable = 10;
"@
# End of the here string

# This is regular script again

Note

See the section “Strings” to learn more about here strings.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.255.162