Spells may or may not be cast through a Wall of Force. It depends on the spell.
A spell effect that physically must travel from the caster to the target cannot be targeted at something on the other side of a Wall of Force.
"A Clear Path to the Target.
To target something, you must have a clear path to it, so it can't be behind total cover."