The project dedicated to empowering your PowerShell scripting.

Test-PSFShouldProcess

SYNOPSIS

SYNTAX

DESCRIPTION

This command can be used in other commands to implement the ShouldProcess question asked if using the command requires confirmation.
This replaces / wraps the traditional ShouldProcess call, makes it easier to read in script and allows mocking it.