Fix app command when app is stopped or not staged
[#58370334]