resolve #20 -- powershell script to run app as command line function