Add a script for running PS user actions

This commit is contained in:
Manuel Thalmann 2024-10-12 01:01:01 +02:00
parent 59708b8f04
commit 09aa95420d

View file

@ -6,8 +6,12 @@ begin
functions -e configureSW functions -e configureSW
functions -e userConfig functions -e userConfig
function runPSUserAction -a script action name
pwsh -CommandWithArgs '& $args[0] $args[1] @{ name=$args[2]; }' "$script" "$action" "$name"
end
function runPSUserConfig -a script name function runPSUserConfig -a script name
pwsh -CommandWithArgs '& $args[0] ConfigureUser @{ name=$args[1]; }' "$script" "$name" runPSUserAction "$script" ConfigureUser "$name"
end end
function runInstaller -V dir -a action function runInstaller -V dir -a action