Allow skipping PowerShell profile files
This commit is contained in:
parent
98db57981c
commit
dd902e4859
1 changed files with 11 additions and 3 deletions
|
@ -33,11 +33,19 @@ function ConvertTo-Injection {
|
||||||
#>
|
#>
|
||||||
function Write-PSScript {
|
function Write-PSScript {
|
||||||
param(
|
param(
|
||||||
[string] $FileName,
|
[Parameter(Mandatory=$true)]
|
||||||
[string] $Script,
|
[Parameter(ParameterSetName="Common")]
|
||||||
[Parameter(ParameterSetName="Replace")]
|
[Parameter(ParameterSetName="Replace")]
|
||||||
[switch] $Replace,
|
|
||||||
[Parameter(ParameterSetName="Append")]
|
[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
|
[switch] $Append
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue