Disclaimer : I am the epitome of a scipting/Powershell rookie, so please bear with me.
I\'ve written a script to return the Active Directory username of any
I had the same problem for scripts that I'm executing "on demand". I tend to simply add a Read-Host at the end of the script like so
Read-Host
$str = "This text is hardly readable because the console closes instantly" Write-Output $str Read-Host "Script paused - press [ENTER] to exit"