powershell
Windows PowerShell is a task-based command-line shell and scripting language designed especially for system administration. Windows commands reference
On Windows 170 Sigma rules name it File powershell.exe
Windows
Windows PowerShell is a task-based command-line shell and scripting language designed especially for system administration. Built on the .NET Framework, Windows PowerShell helps IT professionals and power users control and automate the administration of the Windows operating system and applications that run on Windows.
Several platforms
This command may be mistaken as the cross-platform version of PowerShell (formerly known as PowerShell Core), which uses pwsh instead of powershell. The original powershell command in Windows is still available to use the legacy Windows version of PowerShell (version 5.1 and below).
Windows
Command-line shell and scripting language designed especially for system administration. This command refers to PowerShell version 5.1 and below (also known as the legacy Windows PowerShell). To use the newer, cross-platform version of PowerShell (also known as PowerShell Core), use pwsh instead of powershell.
Start an interactive shell session
powershellIdentifyStart an interactive shell session without loading startup configs
powershell -NoProfileIdentify-NoProfileDoesn't load the PowerShell profile. about_PowerShell_exeExecute specific commands
powershell -Command "echo 'powershell is executed'"Identify-CommandThe value of Command can be -, a script block, or a string. about_PowerShell_exeExecute a specific script
powershell -File path\to\script.ps1Identify-FileThe value of File can be - or a filepath and optional parameters. about_PowerShell_exeStart a session with a specific version of PowerShell
powershell -Version versionIdentify-VersionStarts the specified version of PowerShell. about_PowerShell_exePrevent a shell from exit after running startup commands
powershell -NoExitIdentify-NoExitDoesn't exit after running startup commands. about_PowerShell_exeDescribe the format of data sent to PowerShell
powershell -InputFormat TextIdentify-InputFormatDescribes the format of data sent to PowerShell. about_PowerShell_exeDetermine how an output from PowerShell is formatted
powershell -OutputFormat TextIdentify-OutputFormatDetermines how output from PowerShell is formatted. about_PowerShell_exeWhat detects it
And 140 more rules that name powershell.