init.ps1

param ($FolderName = "$env:userprofile\Documents\WindowsPowerShell\Modules\MSGraphTokenLifetimePolicy\")

$moduleName = "MSGraphTokenLifetimePolicy.psm1"
$path = join-path $FolderName $moduleName

if(-not (Test-Path $path))
{
    Write-Error "Please set FolderName to the folder containing $moduleName"
}

Write-host ("Importing Module: {0}" -f $path)

Install-Module $path
Import-ActiveDirectoryAuthenticationLibrary