Hızlı yanıt: kod örneği
superuser.com run-powershell-command-from-cmd
powershell -command "get-process | ? {$_.Description -eq 'Sysinter Process Explorer'} | select processname | out-file $env:APPDATA\example.txt"
powershell -command " #PasteCodeHere "
'
powershell -command "& 'somestuff'"
&
&
powershell -command "& 'C:\foobar.ps1'"
powershell -file C:\file.ps1