I want to start a powershell window with a title and execute a command at the same time. My line of code starts a powershell window with a title but does not execute the command in powershell (execute is in the cmd-window).
How can I fix the problem to get the execution in the powershell window I created with the title?
Thanks for helping me out
start powershell -command "$Host.UI.RawUI.WindowTitle = 'WebWolf'" & java -jar .\webwolf-8.0.0.M25.jar --server.port=8090

-commandparameter. BTW if you just need a window with a titlestartis enough. - montonerostart "WebWolf" java -jar .\webwolf-8.0.0.M25.jar --server.port=8090would run it in a cmd.exe shell with the title you desire. - litstart powershell -noExit -command "$Host.UI.RawUI.WindowTitle ='WebWolf' & java -jar .\webgoat-server-8.0.0.M25.jar --server.port=8090"is not working either now I get a error message: & is not a valid token - Maxi