Why does Write-Output not work inside a PowerShell class method? Why does Write-Output not work inside a PowerShell class method? powershell powershell