$ eval echo $(cat something.txt)
hello 42 world
$ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)
Copyright (C) 2007 Free Software Foundation, Inc.
Можно сделать с помощью ValueConverter:
Это может помочь: {{1} } Встроенные конвертеры WPF IValueConverters