ScriptCop is a PowerShell module that helps ensure your scripts are following the rules.
It's what is called a 'Static Analysis' tool, meaning that it doesn't run your scripts, it just looks at them.
ScriptCop has an ever-expanding list of rules that check for a variety of different problems with Powershell commands.
You can use ScriptCop a few different ways:
By declaring one or more commands in a scriptblock, like:
Test-Command -ScriptBlock {
function IsThisGoodPowerShell{
}
}