...
Code Block |
---|
tasklist /fi "pid eq <PID>" |
Run process in the background
First, create a function that can be used to execute processes in the background
Code Block |
---|
function bg() {Start-Process -NoNewWindow @args} |
Now it can be used as follows
Code Block |
---|
bg ipconfig /all |
ipconfig will now run in the background