Refactor and add of deploy ps1.