dot-source scriptblock

This commit is contained in:
2025-07-22 04:50:50 +05:30
parent bc781ad079
commit fd1e146753
11 changed files with 89 additions and 89 deletions

View File

@@ -39,7 +39,7 @@ goto :E_Exit
set "_batf=%~f0"
set "_batp=%_batf:'=''%"
setlocal EnableDelayedExpansion
%_psc% "$f=[System.IO.File]::ReadAllText('!_batp!') -split ':sppmgr\:.*';& ([scriptblock]::Create($f[1]))"
%_psc% "$f=[System.IO.File]::ReadAllText('!_batp!') -split ':sppmgr\:.*';. ([scriptblock]::Create($f[1]))"
:E_Exit
echo.