> For the complete documentation index, see [llms.txt](https://khanhas.gitbook.io/powershellrm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://khanhas.gitbook.io/powershellrm/bang.md).

# Bang

You can invoke functions, cmdlets or a script block with `!CommandMeasure` bang.

{% code title="Example Bang usage" %}

```php
[PSRM]
Measure = Plugin
Plugin = PowershellRM
Line = function FirstFile() { $f = Get-ChildItem .\; $RmAPI.Log($f[0].FullName) }

[Meter]
Meter = Shape
Shape = Rectangle 0,0,200,200
LeftMouseUpAction = !CommandMeasure PSRM "FirstFile"
```

{% endcode %}
