Hello,
thank you for the reply,
the issue is within the "someApp", even if I start the app manually a cmd windows pops up to start it and when I run the C:\someApp\bin\stop.bat the App stops however the opened cmd windows never closes and that leads the powershell to keep the session alive on until the closure of the cmd windows .
My solution to find the process and kill it after stopping the App.