Microsoft were kind enough to break App-V scripting in April’s updates:

Thankfully enough customers made a fuss about this that it has been fixed in May’s updates! App-V bugs don’t get fixed very often and we usually have to just live with them (ahem!), so this is quite a treat!

Download links are available here: