Function executePowershellScript