BitTitan.Runbooks.MSPComplete.Beta.psm1

<#
.SYNOPSIS
    PowerShell module for common MSPComplete functions and resources used in BitTitan Runbooks.
.NOTES
    Version: 0.4.3
    Last updated: 12 February 2019
 
    Copyright (c) BitTitan, Inc. All rights reserved.
    Licensed under the MIT License.
#>


# Install/import BitTitan.Runbooks.Modules to bootstrap the install/import of the other modules
Install-Module BitTitan.Runbooks.Modules -Scope CurrentUser -AllowClobber -Force
Import-Module -Name "$($env:USERPROFILE)\Documents\WindowsPowerShell\Modules\BitTitan.Runbooks.Modules" -Force

# Install/import external modules

# Install/import the other BitTitan.Runbooks modules
Import-BT_Module BitTitan.Runbooks.Common -Quiet

# Check for SKIP_MSPC_TASK in any of the task string inputs
Write-Information "Checking for SKIP_MSPC_TASK in the inputs."
if (Find-StringInMSPCompleteTaskInputs -SearchString "SKIP_MSPC_TASK" -CaseSensitive:$false) {
    Write-Information "'SKIP_MSPC_TASK' was found in the MSPComplete task string inputs. This task will be skipped."
    exit
}