From 7d72acec88f5571bf02e1c071f3678b23c7da514 Mon Sep 17 00:00:00 2001 From: Seth Falco Date: Thu, 29 Jul 2021 05:06:50 +0200 Subject: [PATCH] pwsh: add page (#6249) --- pages/common/pwsh.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/pwsh.md diff --git a/pages/common/pwsh.md b/pages/common/pwsh.md new file mode 100644 index 0000000000..8049078b47 --- /dev/null +++ b/pages/common/pwsh.md @@ -0,0 +1,20 @@ +# pwsh + +> PowerShell Core is a cross-platform automation and configuration tool/framework. +> More information: . + +- Start an instance of PowerShell: + +`pwsh` + +- Execute a script and then exit: + +`pwsh -File {{path/to/file.ps1}}` + +- Set the execution policy for the current session: + +`pwsh -ExecutionPolicy {{AllSigned|Bypass|Default|RemoteSigned|Restricted|Undefined|Unrestricted}}` + +- Execute a command and then exit: + +`pwsh -Command {{command}}`