When I run the same command directly in that windows server, the "powershell part" trigger .bat script job, then get back to powershell console successfully . Later, a new window pops out. The new window is Tomcat server that shows logs of my service.
However, when I do the same job with Azure release pipeline, the Tomcat window did not show up. And release job console keep hanging. I think somewhat the output of popout window has be redirected to the console in release pipeline.
In addition, if I cancel the release job. my Tomcat service still working. (just without console to debug)
Or, another thought, can I achieve my goal with other task? (powershell is not a "must")