nitpicking:

If !($TestedVariable) {
    'Do things'
}

#should be
If (!$TestedVariable) {
    'Do things'

}

This will be a syntax error as powershell expects an open bracket after the IF

Try to use ‘-not’ rather than ‘!’, makes it easier to read :¬)

Try to avoid using obscure or punctuation aliases (like ? and %)
use command names instead.
If (-not $TestedVariable) {
    'Do things'
}
1 Spice up