Skip to content

Commit 36591a1

Browse files
authored
Update Invoke-CommandAs.ps1 (#60) !publish
1 parent 2226571 commit 36591a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Invoke-CommandAs/Public/Invoke-CommandAs.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ function Invoke-CommandAs {
310310
}
311311

312312
If ($FilePath) {
313-
$ScriptContent = Get-Content -Path $FilePath
313+
$ScriptContent = Get-Content -Path $FilePath -Raw
314314
$ScriptBlock = [ScriptBlock]::Create($ScriptContent)
315315
}
316316

0 commit comments

Comments
 (0)