How can I get the output of a command (i.e. get-process) to display in a new powershell window with the the -nologo and -noninteractive options. I've tried all sorts of things that don't work like:
get-process > start-process powershell.exe -nologo -noninteractive
get-process | write-output start-process powershell.exe -nologo -noninteractive
I just can't seem to get my output into a new powershell window, no matter how many ways I Google it. I need to be able to do this when selecting a certain function via my mutli-level powershell menu script.
start -FilePath powershell.exe -ArgumentList "-nologo -noninteractive -command {Get-Process}"
Will do what you asked for but I have a feeling that may not really be what you want.