1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 00:55:33 +02:00

pwsh: refresh page (#7983)

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
Emily Grace Seville 2023-01-31 03:00:42 +10:00 committed by GitHub
parent 10ba7cd81e
commit 101aa05c65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,20 +1,25 @@
# pwsh
> PowerShell Core is a cross-platform automation and configuration tool/framework.
> See also: `powershell`.
> More information: <https://learn.microsoft.com/powershell/>.
- Start an instance of PowerShell:
- Start an interactive shell session:
`pwsh`
- Execute a script and then exit:
- Start an interactive shell session without loading startup configs:
`pwsh -File {{path/to/file.ps1}}`
`pwsh -NoProfile`
- Set the execution policy for the current session:
- Execute specific commands:
`pwsh -ExecutionPolicy {{AllSigned|Bypass|Default|RemoteSigned|Restricted|Undefined|Unrestricted}}`
`pwsh -Command "{{string}}"`
- Execute a command and then exit:
- Execute a specific script:
`pwsh -Command {{command}}`
`pwsh {{path/to/script.ps1}}`
- Start an interactive shell session with a specific execution policy:
`pwsh -ExecutionPolicy {{AllSigned|Bypass|Default|RemoteSigned|Restricted|...}}`