< Back

New-AMProcess

Sat Jan 11, 2020 3:00 am

NAME New-AMProcess



SYNOPSIS

Creates a new AutoMate Enterprise process.





SYNTAX

New-AMProcess [-Name] <String> [-Notes <String>] [-CommandLine <String>] [-WorkingDirectory <String>]

[-EnvironmentVariables <String>] [-RunningContext {Default | SH | Bash}] [-Folder <Object>] [-Connection <Object>]

[-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

New-AMProcess creates a new process object.





PARAMETERS

-Name <String>

The name of the new object.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Notes <String>

The new notes to set on the object.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-CommandLine <String>

The command to run.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WorkingDirectory <String>

The working directory to use when running the command.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-EnvironmentVariables <String>

Environment variables to load when running the command.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-RunningContext

The context to execute the command in: Default, SH or Bash.



Required? false

Position? named

Default value Default

Accept pipeline input? false

Accept wildcard characters? false



-Folder <Object>

The folder to place the object in.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Connection <Object>

The server to create the object on.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

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 --------------------------



PS C:\\># Change command for a process



New-AMProcess -Name "Test Process" -CommandLine "dir.exe > %TEMP%\\dir.txt" -EnvironmentVariables "TEMP"











RELATED LINKS

https://github.com/AutomatePS/AutomatePS