we have 2 methods,
Instead of,
Command.CommandText = $@"select * from %SYS.Namespace_List()";
use
Command.CommandText = "DO $SYSTEM.SQL.Execute(\"SELECT Name FROM %SYS.Namespace\")";