I am writing a script which will give the count of process running based on the window title, remotely from multuple machine. However i am not getting the out put displayed with the consoles name. Does get-process output the mainwindowstitle property when invoced through invoke-command?
Please find reference to script: https://pastebin.com/5rK4Auws
Below is the output that i get: