I'm building a setup script for new computers on the company.
Some settings are set by registry, but some can only be changed with the windows API, such as (example only, I need to run many other API methods too):
Windows.System.UserProfile.LockScreen.SetImageFileAsync(file);
What is a very simple/straighforwad way to run a simpler script / powershell script that calls an API method without having to build/compile an application that calls it?