Scripts/Install-BcSystem.ps1

# Specify the name of the Business Central Server Instance to use for the installation.
$ServerInstance = ''   # E.g. 'BC170' or @('NST160Test', 'NST160Acc')

# Import PowerShell module
Join-Path $PSScriptRoot '\PowerShell\FpsALDeployment\FpsBcDeployment.psd1' | Import-Module -Global -DisableNameChecking -Force 
Join-Path $PSScriptRoot '\PowerShell\FpsGeneral\FpsGeneral.psd1' | Import-Module -Global -DisableNameChecking -Force 

Publish-BcSystem `
    -ServerInstance $ServerInstance `
    -SoftwarePath (Join-Path $PSScriptRoot 'System') `
    -LicensePath  (Join-Path $PSScriptRoot 'CustomerLicense.flf') `
    -RemovePreviousVersions `
    -ErrorAction Stop