I think this Commit 8a0e339 introduced some bugs.
Lines like:
Invoke-SearchMailboxtt-t Has the ability to do deep searches across a user’s mailbox and can export messages
Replaced with:
Invoke-SearchMailboxtt-t Has the ability to do deep searches across a user’s mailbox and can export messages
I suspect this is due to replacing quotes with ’.
In any case, the current script wont import into PowerShell.