Run File-Content like F8 in ISE: Unterschied zwischen den Versionen
Aus Wiki-WebPerfect
Admin (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „This can be used to load for example the content of a PowerShell Module instead of importing it. <source lang="powershell> Invoke-Expression (Get-Content -Raw…“) |
Admin (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
This can be used to load for example the content of a PowerShell Module instead of importing it. | This can be used to load for example the content of a PowerShell Module instead of importing it. | ||
− | <source lang="powershell> | + | <source lang="powershell"> |
Invoke-Expression (Get-Content -Raw <YOUR_FILE>) | Invoke-Expression (Get-Content -Raw <YOUR_FILE>) | ||
</source> | </source> |
Aktuelle Version vom 10. Januar 2022, 16:52 Uhr
This can be used to load for example the content of a PowerShell Module instead of importing it.
Invoke-Expression (Get-Content -Raw <YOUR_FILE>)