15 lines
269 B
PowerShell
15 lines
269 B
PowerShell
function Start-Operation {
|
|
param(
|
|
[scriptblock] $Action
|
|
)
|
|
|
|
$ErrorActionPreference = 'Inquire';
|
|
$env:WSLENV = "CONFIG_MODULE/p";
|
|
|
|
if ($env:CONFIG_MODULE) {
|
|
$env:CONFIG_MODULE = Resolve-Path $env:CONFIG_MODULE;
|
|
}
|
|
|
|
& $Action;
|
|
}
|