I tested it within windows 10 and powershell 5.1,and found only few cmdlet can run,I have tested get-process also,but thers is no result
procedure TForm1.Button1Click(Sender: TObject);
var ChocoPS : TProcess;
oput: ansistring;
begin
ChocoPS:= TProcess.Create(Form1);
ChocoPS.Options:=[poUsePipes,poWaitOnExit,poNoConsole,poStderrToOutPut];
ChocoPS.Executable:='PowerShell.exe';
//ChocoPS.Parameters.Add('Get-WmiObject -Class Win32_BIOS -ComputerName .');
//ChocoPS.Parameters.Add('whoami /upn');
ChocoPS.Parameters.Add('Get-NetAdapter');
ChocoPS.Active:=True;
//oput:=ChocoPS.Output;
Memo1.Lines.LoadFromStream(ChocoPS.Output,Tencoding.ANSI);
//memo1.Append(oput);
ChocoPS.Free;