Use the scripts under "pups" to remove potentially unwanted applications. Currently supporting onestart and pcappstore.
Scripts can easily be converted to one line using the reducePS tool under "utilities".
usage: reducePS.py [-h] source_file target_directory
positional arguments:
source_file Path to Powershell script.
target_directory Target directory for the converted file.