Rename company
$DynamicsNAVModule = "";
$NavServerInstance = "";
$OldCompanyName = "";
$NewCompanyName = "";
#-------------------------------DO NOT EDIT UNDER THIS LINE-------------------------------
Import-Module $DynamicsNAVModule;
Get-NAVCompany -ServerInstance $NavServerInstance
Rename-NAVCompany -ServerInstance $NavServerInstance -CompanyName $OldCompanyName -NewCompanyName $NewCompanyName