I have created a long running process from powershell which runs a command for quite some time as follows:
Start-process "powershell" "long running command"
I want to give this process a custom name or some kind of tag of type string to refer the process later.
Is this possible to name a powershell process launched from powershell ?
I can't use pid in my case because we have to provide our client process-search ability using a name provided by him.