There are several ways you can output something in PowerShell terminal. You can use plain old echo command or PowerShell cmdlets like Write-Host or Write-Output. Let me give an example for reference –
1 2 3 4 5 6 7 8 9 10 11 12 13 |
"hello world" ## returns hello world 5 ## returns 5 5 * 5 ## returns 25 "hello" + "world" ## returns helloworld "hello" * 2 ## returns hellohello echo "hello" ## returns hello $name = "debjeet"; $name ## returns debjeet Write-Host "hello" ## returns hello Write-Host "$name" ## returns debjeet Write-Host '$name' ## returns $name Write-Output "hello" ## returns hello Write-Warning -Message "hello" ## returns WARNING: hello Write-Error -Message "error" ## returns an error message |