Remove unnecessary module

This commit is contained in:
Manuel Thalmann 2023-06-22 17:59:10 +02:00
parent 55ba435699
commit 282c21f6ab

View file

@ -1,13 +1,8 @@
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Prerequisites.ps1";
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";
$entryPoint = "$($MyInvocation.MyCommand.Path)";
$null = New-Module {
Write-Host "Starting Restoration of Windows";
. "$PSScriptRoot/../../../scripts/Windows/OS/Install.ps1";
[Context]$context = [Context]::new();
Write-Host "Setting entry point to $entryPoint";
$context.EntryPoint = "$entryPoint";
$context.EntryPoint = "$($MyInvocation.MyCommand.Path)";
Invoke-WindowsInstallation $context;
}