I'm trying to do the following:
Display a list from a multidimensional array:
$AssetList | Where-Object {$_.agenttype -eq "N"} | Select-Object number, hostname, agentstatus | Write-Output
Then read in a number from the user:
$Victim = Read-Host -Prompt 'Enter the number of the host you want rid of...'
What happens in reality is the Read-Host is displayed before the Write-Output. How can I flip it and reverse it?