Add a script for running PS user actions
This commit is contained in:
parent
59708b8f04
commit
09aa95420d
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue