Updated PS1 script with new options