batforps


Version    : 1.0
File Name  : batforps.ps1
Author     : Adewale Azeez - iamthecarisma@gmail.com
Date       : Jan-06-2020

Syntax

batforps [-Command] [-powershell_script_path] <String>
[-output_folder_path] <String> [-Absolute] [<CommonParameters>]

Parameters

-Command [:SwitchParameter]

attr

value

Required?

false

Position?

named

Default value

False

Accept pipeline input?

false

Accept wildcard characters?

false

-powershell_script_path :String

attr

value

Required?

true

Position?

1

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-output_folder_path :String

attr

value

Required?

true

Position?

2

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-Absolute [:SwitchParameter]

attr

value

Required?

false

Position?

named

Default value

False

Accept pipeline input?

false

Accept wildcard characters?

false

CommonParameters

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).

Inputs

Outputs

EXAMPLE 1

batforps ./commands/printhead.ps1 ./dist/

EXAMPLE 2

batforps -Command Set-Location ./dist/

The commands above creates a batch script wrapper for the powershell Set-Location command