Improved 'exec' helper - now it also works with Seq() commands.