private/Install-MSP360Module.ps1

function Install-MSP360Module {
    @('public\api','public\cbb','public\tools','private') | ForEach-Object {$Folder = New-Item -Path "$ENV:windir\System32\WindowsPowerShell\v1.0\Modules\msp360" -Name $_ -ItemType "directory" -ErrorAction SilentlyContinue}
    [IO.Compression.ZipFile]::OpenRead("$ENV:TEMP\msp360.zip").Entries | where {$_.Name -like "*.ps*1"}| ForEach-Object {[IO.Compression.ZipFileExtensions]::ExtractToFile($_,"$ENV:windir\System32\WindowsPowerShell\v1.0\Modules\msp360\$_",$true)}
}