The code for s4.ps1 is: Get-Process Get-UpTime | Format-Table Write-Output "`$x = $x" $x = 'ooga' Write-Output "`$x = $x"