If doing Shadow Evocation type damage is what you are hoping for, just prestige into
Veiled Illusionist. Every level gives you a Wizard spell of the illusion school, among other perks. With just illusions you can help yourself to everything from
Shadow Conjuration/
Evocation/
Enchantment/
Transmutation to
Simulacrum to
Shadow Step/
Shadow Walk to
Subjective Reality to
Create Mindscape and
Psychic Asylum.
Remember to use a
Shadow Stencil set, get a metamagic rod of
Persistent Spell, and learn the
Tenebrous Spell metamagic feat. There is also the
Solid Shadows metamagic, but it costs a spell level so without a metamagic rod it's not as useful and you usually want to use Persistent Spell rods instead.
If you're looking to expand your spell list, you can also take the
Loremaster PrC and use the
Secret of Magical Discipline feat as many times as you want (which you should be able to gain as a bonus feat on Loremaster 1 with a high enough int score). You could also take the
Stargazer PrC for all its various perks (including adding flight and planar binding spells to your spell list). And you can also use
Pathfinder Savant to obtain any spell you want (at a 1 level penalty) and
Daivrat to gain access to any spell on a temporary basis (at a 2 level penalty), but they cost you 1 dead spellcaster level (but you can use the
Prestigious Spellcaster feat to cover them). The
Runeguard PrC similarly has 1 dead level but adds all the symbol and glyph spells to your class list. It also allows you to use any metamagic feat with a level adjustment of 1 for free by spending swift actions.
You can also use the
Magaambyan Arcana race trait (if you are not Human, the
Adopted social trait can be used to take it anyway) to add any 1 Druid or Cleric spell with the good descriptor to your class list and the
Two-World Magic magic trait to add a cantrip from another spellcaster to your Beguiler. That's a lot more flexible if you use the
Additional Traits feat with the
Paragon Surge spell to expand your spell list temporarily with the spell of your choice. You can also use a
Ring of Spell Knowledge (use UMD to circumvent the spell level penalty, preferably with a
Pragmatic Activator magic trait or
Clever Wordplay social trait to make UMD int-based instead) to add just about any spell 4th level or lower to your repertoire. It's probably not supposed to let you cast divine spells though.
There are more stunts too.