process{$Buffer=''$Depth=0for($Index=0;$Index-lt$InputString.Length;$Index+=1){if($InputString[$Index]-eq$Separator){if($Depth-eq0){Write-Output$Buffer.Trim()$Buffer=''continue}}if($InputString[$Index]-eq'('){$Depth+=1}if($InputString[$Index]-eq')'){$Depth-=1}$Buffer+=$InputString[$Index]}if($Depth-ne0){throw'Cannot convert expression because braces is not closed.'}Write-Output$Buffer.Trim()}