Not exactly sure what you are trying to do, but the block of code in the red box is always executed, independent of the value in $options.
Should that code only be executed when $options is equal to 1?
Also not sure why do the following at the start, before even asking for option 1 or 2?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference