protected function buildCommand(string $command, bool $background = false, bool $sameEnvironment = true): string
	{
		if($sameEnvironment && strpos($command, '--env=') === false && ($environment = $this->app->getEnvironment()) !== null)
		{
			$command .= ' --env=' . $environment;
		}

		$command = PHP_BINARY . ' ' . $this->buildReactorPath() . ' ' . $command . ' 2>&1';

		if(DIRECTORY_SEPARATOR === '\\')
		{
			if($background)
			{
				$command = '/b ' . $command;
			}

			return 'start ' . $command;
		}

		if($background)
		{
			$command .= ' &';
		}

		return $command;
	}