Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

PowerShell script block

# How to create your own Invoke commandlet function

function Invoke-MyOwnCommand {
	param (
    	[System.Management.Automation.ScriptBlock]$ScriptBlock = $null
    )
    &$ScriptBlock
}

# Usage
Invoke-MyOwnCommand -ScriptBlock {Get-Process}
Comment

PREVIOUS NEXT
Code Example
Shell :: linux makefile 
Shell :: how to install wsl 2 
Shell :: how to resolve conflict in git 
Shell :: ubuntu 
Shell :: makefile parameter 
Shell :: npm user install packages 
Shell :: bash exit code 
Shell :: tar extract command windows 
Shell :: sonarqube linux installation 
Shell :: grep second line 
Shell :: delete a folder then git push 
Shell :: git clone without folder 
Shell :: busybox ubuntu 
Shell :: git merge tag to branch and squash commits 
Shell :: sed replace with newline 
Shell :: get linux directory size 
Shell :: import docker image 
Shell :: crear una aplicacion con angular cli 
Shell :: find the process ID of a running process bash 
Shell :: docker run 
Shell :: install vs code on ubuntu 
Shell :: how to make a single digit date start with zero 
Shell :: install bravado_core 
Shell :: allure report history 
Shell :: zsh get first line 
Shell :: anonymous github email 
Shell :: colcon select package 
Shell :: gdb value of type is more than max-value-size 
Shell :: brew compas mongo 
Shell :: unix get time 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =