While Loop In Shell Script Interface In Typescript