The indentation of the powershell script is not correct when in braces blocks. For instance, the following lines are correct:
Write-Host "line 1"
Write-Host "line 2"
While, if they are inside a pair of braces, when use = to indent the code block, the outcome becomes:
If ($value -gt 0)
{
Write-Host "line 1"
Write-Host "line 2"
}
The indentation of the powershell script is not correct when in braces blocks. For instance, the following lines are correct:
While, if they are inside a pair of braces, when use
=to indent the code block, the outcome becomes: