As for …
3. Get Admin Powershell to Write-Host "Hello World" (not solved)
*** Please ***
The only thing I want out of this post is how to get Admin PowerShell to display “Hello World.” Nothing else.
I don’t want a long-winded, complicated explanation because it isn’t needed and I will just TL;DR. And I certainly don’t want lectured or berated on “Why are you trying to do this ?”
This is PowerShell 101 stuff and fully documented in the built-in help files …
Example 6: Using different verbs to start a process
Example 7: Specifying arguments to the process
…and all over the web, and directly from Microsoft.
From Microsoft from a simple search, 10 seconds to find this …
# Using a PowerShell script to run as a different user & elevate the process.
Being new is fine, even asking question, but we are also here to provide guidance, so that later, one can figure this out on their own. I get the TL;DR stuff, but a good port of the time, it is a requirement to make sure to avoid unnecessary confusion, frustration, errors, misconceptions as you are showing here.
So, what the other are saying is valid.
From the MS article above...
Start-Process powershell.exe -Credential "TestDomain\Me" -NoNewWindow -ArgumentList "Start-Process powershell.exe -Verb runAs"
# Or directly...
Start-Process powershell.exe -Verb RunAs -ArgumentList "Write-Output 'hello world'"
No one here is trying to be belligerent, just educational as well as providing answers as warranted. So, don’t take those negatively. We all learn from everyone, at any time, even it might upset us.