The statements below are for the application property management in Spring Shell. The shell 3.3x these statement can resolve your issue while debugging the code snippet on the application.
spring.shell.interactive.enabled = true spring.shell.script.enabled = true