added BuildCommand
updated main entry script to use console app