Allow skipping PowerShell profile files

This commit is contained in:
Manuel Thalmann 2024-08-07 22:25:42 +02:00
parent 98db57981c
commit dd902e4859

View file

@ -33,11 +33,19 @@ function ConvertTo-Injection {
#>
function Write-PSScript {
param(
[string] $FileName,
[string] $Script,
[Parameter(Mandatory=$true)]
[Parameter(ParameterSetName="Common")]
[Parameter(ParameterSetName="Replace")]
[switch] $Replace,
[Parameter(ParameterSetName="Append")]
[string] $FileName,
[Parameter(Mandatory=$true)]
[Parameter(ParameterSetName="Common")]
[Parameter(ParameterSetName="Replace")]
[Parameter(ParameterSetName="Append")]
[string] $Script,
[Parameter(ParameterSetName="Replace", Mandatory=$true)]
[switch] $Replace,
[Parameter(ParameterSetName="Append", Mandatory=$true)]
[switch] $Append
)