Add functions to shrink and extend path in ps1