In PowerShell you get the following error when trying to import the RoyalDocument.PowerShell.dll:
Import-Module : Could not load file or assembly 'file:///C:\Program Files (x86)\code4ward.net\Royal TS V3\RoyalDocument
.PowerShell.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtim
e and cannot be loaded.
At line:1 char:14
- Import-Module <<<< '.\RoyalDocument.PowerShell.dll'
- CategoryInfo : NotSpecified: (:) [Import-Module], BadImageFormatException
- FullyQualifiedErrorId : System.BadImageFormatException,Microsoft.PowerShell.Commands.ImportModuleCommand
PowerShell by default is built against the .NET framework 2.0 internally. You can check this with the PowerShell variable:
(look for CLR Version)
You should update to at least PowerShell 4 - it is included in the Windows Management Framework 4.0. More details can be found at http://social.technet.microsoft.com/wiki/contents/articles/21016.how-to-install-windows-powershell-4-0.aspx
After installing, you have a newer PowerShell that was built against .NET 4.