10 lines
381 B
PowerShell
10 lines
381 B
PowerShell
|
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Prerequisites.ps1";
|
||
|
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";
|
||
|
. "$PSScriptRoot/../../../scripts/Windows/OS/Manage.ps1";
|
||
|
|
||
|
$null = New-Module {
|
||
|
$context = [Context]::new();
|
||
|
$context.BackupName = $env:BACKUP_NAME ?? $(Read-Host -Prompt "Please enter a backup name");
|
||
|
Invoke-WindowsBackup $context;
|
||
|
}
|