It is currently December 12th, 2018, 4:08 am

PowershellRM: Invoke powershell script in Rainmeter

Share your custom plugins and applications to enhance Rainmeter.
User avatar
Posts: 32
Joined: October 26th, 2016, 5:00 pm

PowershellRM: Invoke powershell script in Rainmeter

khanhas » August 29th, 2018, 4:58 pm

PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language.

In recent Windows version, Microsoft has deeply integrated Powershell into Windows and provided large amount of cmdlet, functions, variables to access both low and high API. Powershell itself can be extended definitely with scripts and C# modules and proves to be valuable tools for both sysadmin and programmers.

In current state of Rainmeter, we can execute Powershell script file or single command with RunCommand plugin by running powershell cli + bunch of parameters. This method is slow, hard to customize and you can get only one value of a time.

With PowershellRM, you can execute a script file or just couple lines of Powershell right in Rainmeter, natively. Results of invocation will be measure value and be updated along with skin update. Moreover, with parent/children measures relationship, Powershell session state will be shared between them. Children measures can get variable or use function that is defined in parent measure. This feature will save a lot of time and resource for script invocation.
Rainmeter API is also exposed, you can get skin variables, measure values and execute bang in Powershell script.

To download plugins, examine example usage and documentation, check out PowershellRM's Github page:

Any bug report, feature suggestion are greatly welcomed.